Skip to content

Docs: Update THEMING.MD #1026

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

Merged
merged 2 commits into from
Mar 1, 2018

Conversation

TaylorAckley
Copy link
Contributor

Add instructions to effectively fork the default theme for the purpose of creating and using your own custom theme.

Add instructions to effectively fork the default theme for the purpose of creating and using your own custom theme.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 86.068% when pulling 3a8ab80 on TaylorAckley:docs-update-theming into 487336f on documentationjs:master.

@coveralls
Copy link

coveralls commented Feb 28, 2018

Coverage Status

Coverage remained the same at 86.068% when pulling 6ca0083 on TaylorAckley:docs-update-theming into 487336f on documentationjs:master.

docs/THEMING.md Outdated

- In the folder you created, replace `require('../')` on lines 10 and 11 of `index.js` with `require('documentation')` and save.

- You can now make changes that will show up when you generate your docs using your theme. Example `package.json` `scripts` entry: `"node_modules/.bin/documentation build index.js -f html -o docs --theme node_modules/docjs-theme"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I think this bit's extraneous: if it's an an npm script, ./node_modules/.bin/ is automatically added to the path resolution, so you should be able to just refer to documentation, not the full relative path.

Chanted the script line example to use documentation instead of referring to the node_modules bin folder.
@TaylorAckley
Copy link
Contributor Author

@tmcw Updated per your feedback (or I think so, this is my first PR)

Copy link
Member

@tmcw tmcw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks!

@tmcw tmcw merged commit 43682b2 into documentationjs:master Mar 1, 2018
@TaylorAckley
Copy link
Contributor Author

Glad I could help (I think) - I am a huge fan of Observable and your work, thanks for making DocumentationJS!

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.

3 participants