-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug fix in the createDocs function #13
Open
dhavalpowar
wants to merge
35
commits into
gh-pages
Choose a base branch
from
master
base: gh-pages
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The README.md said, you will have to run `npm install` at the beginning. So there is no need to have node_modules folder on repository. I have updated the `package.json` and added the missing dependencies (`handlebars` and `highlight.js`) and removed the `node_modules` folder. Also added it the `.gitignore`.
enhanced node modules handling
I have enabled the use of includes, so it becomes more usable like slate itself. I have also transformed to code to [standard JS](https://github.com/feross/standard), so you can use the banner in your README file if you want to ;) close #3
Enabled includes
I have enabled the possibility to have „correct“ names for the language tabs. [Slate](https://github.com/tripit/slate/wiki/Customizing-the-Language-Ta bs#language-tab-display-names) > The language name that you use next to the code blocks must exactly match one of the Rouge supported languages. However, sometimes you want the language tab to list something else. For instance, you may want the shell language to appear in the language tab as "Curl". Let's say your language tabs are like this: ```md language_tabs: - shell - ruby - python ``` You want the "shell" to say "cURL" instead. You can't just change all instances of shell to cURL, since the syntax highlighter has no idea to highlight cURL like a shell script. Instead, just change your language_tabs to look like this: ```md language_tabs: - shell: cURL - ruby - python ``` You continue using shell next to your code blocks, but the language tab now reads "cURL". You can also use this to make your language tabs have nicer capitalization: ```md language_tabs: - shell: cURL - ruby: Ruby - python: Python ```
Enabled named language tabs
Create syntax-highlighting alias shell for bash
Correct license in package.json
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
createDocs
tries to fetch and reduce markdown files aychronously but reduction takes a syncronous callback.