Skip to content
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
wants to merge 35 commits into
base: gh-pages
Choose a base branch
from
Open

Bug fix in the createDocs function #13

wants to merge 35 commits into from

Conversation

dhavalpowar
Copy link

createDocs tries to fetch and reduce markdown files aychronously but reduction takes a syncronous callback.

jmanek and others added 30 commits August 14, 2015 01:44
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
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants