mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30:11 +00:00
Tweak casing.
This commit is contained in:
parent
ae51930c9c
commit
4a2a47f551
@ -44,11 +44,11 @@ Implementation of the 'generate' verb for HackMyResume.
|
|||||||
|
|
||||||
// Load the theme...we do this first because the theme choice (FRESH or
|
// Load the theme...we do this first because the theme choice (FRESH or
|
||||||
// JSON Resume) determines what format we'll convert the resume to.
|
// JSON Resume) determines what format we'll convert the resume to.
|
||||||
var tFolder = verify_theme( _opts.theme );
|
var tFolder = verifyTheme( _opts.theme );
|
||||||
var theme = load_theme( tFolder );
|
var theme = loadTheme( tFolder );
|
||||||
|
|
||||||
// Check for invalid outputs
|
// Check for invalid outputs
|
||||||
var inv = verify_outputs( dst, theme );
|
var inv = verifyOutputs( dst, theme );
|
||||||
if( inv && inv.length ) {
|
if( inv && inv.length ) {
|
||||||
throw { fluenterror: HACKMYSTATUS.invalidTarget, data: inv, theme: theme };
|
throw { fluenterror: HACKMYSTATUS.invalidTarget, data: inv, theme: theme };
|
||||||
}
|
}
|
||||||
@ -223,6 +223,7 @@ Implementation of the 'generate' verb for HackMyResume.
|
|||||||
Render a JSON Resume theme. JSON Resume themes have an index.js that needs
|
Render a JSON Resume theme. JSON Resume themes have an index.js that needs
|
||||||
to be called to perform the render. Additionally, we need to flow Markdown
|
to be called to perform the render. Additionally, we need to flow Markdown
|
||||||
styles to the JSON Resume (to the extent possible).
|
styles to the JSON Resume (to the extent possible).
|
||||||
|
TODO: Refactor
|
||||||
*/
|
*/
|
||||||
function renderJRSTheme( f, outFolder, theme ) {
|
function renderJRSTheme( f, outFolder, theme ) {
|
||||||
|
|
||||||
@ -264,7 +265,7 @@ Implementation of the 'generate' verb for HackMyResume.
|
|||||||
/**
|
/**
|
||||||
Ensure that user-specified outputs/targets are valid.
|
Ensure that user-specified outputs/targets are valid.
|
||||||
*/
|
*/
|
||||||
function verify_outputs( targets, theme ) {
|
function verifyOutputs( targets, theme ) {
|
||||||
|
|
||||||
return _.reject(
|
return _.reject(
|
||||||
targets.map( function( t ) {
|
targets.map( function( t ) {
|
||||||
@ -346,7 +347,7 @@ Implementation of the 'generate' verb for HackMyResume.
|
|||||||
/**
|
/**
|
||||||
Verify the specified theme name/path.
|
Verify the specified theme name/path.
|
||||||
*/
|
*/
|
||||||
function verify_theme( themeNameOrPath ) {
|
function verifyTheme( themeNameOrPath ) {
|
||||||
var tFolder = PATH.join(
|
var tFolder = PATH.join(
|
||||||
parsePath ( require.resolve('fresh-themes') ).dirname,
|
parsePath ( require.resolve('fresh-themes') ).dirname,
|
||||||
'/themes/',
|
'/themes/',
|
||||||
@ -368,7 +369,7 @@ Implementation of the 'generate' verb for HackMyResume.
|
|||||||
Load the specified theme, which could be either a FRESH theme or a JSON Resume
|
Load the specified theme, which could be either a FRESH theme or a JSON Resume
|
||||||
theme.
|
theme.
|
||||||
*/
|
*/
|
||||||
function load_theme( tFolder ) {
|
function loadTheme( tFolder ) {
|
||||||
|
|
||||||
// Create a FRESH or JRS theme object
|
// Create a FRESH or JRS theme object
|
||||||
var theTheme = _opts.theme.indexOf('jsonresume-theme-') > -1 ?
|
var theTheme = _opts.theme.indexOf('jsonresume-theme-') > -1 ?
|
||||||
|
Loading…
Reference in New Issue
Block a user