You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Docs: Update THEMING.MD
Add instructions to effectively fork the default theme for the purpose of creating and using your own custom theme.
* Docs: Revise THEMING.MD per Pull Request Feedback
Chanted the script line example to use documentation instead of referring to the node_modules bin folder.
- Copy contents of `default_theme` folder (noted above) into a new folder in your project. One way to do it is to create a new git repository with the folder contents and add this line to your `package.json``devDependencies` section: `"docjs-theme": "my-gh-username/reponame"`. That way when you install dependencies, your new theme will be in the projects `node_modules` folder.
31
+
32
+
- In the folder you created, replace `require('../')` on lines 10 and 11 of `index.js` with `require('documentation')` and save.
33
+
34
+
- You can now make changes that will show up when you generate your docs using your theme. Example `package.json``scripts` entry: `"documentation build index.js -f html -o docs --theme node_modules/docjs-theme"`
35
+
26
36
### Theming Markdown
27
37
28
38
The default Markdown generator for documentation.js isn't customizable - instead
0 commit comments