This repository was archived by the owner on Oct 24, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -31,3 +31,37 @@ To generate the api boxes, the site uses a file `data/data.js` which is generate
3131#### Starting hexo
3232
3333Ensure you've run ` npm install ` . Then simply ` npm start ` .
34+
35+ ### Developing with local meteor source
36+
37+ When developing jsdoc documentation within the meteor code you will
38+ need to make some local modifications to get the documentation to work locally for testing.
39+
40+ 1 . Modify ` url ` in ` _config.yml ` so links within ` localhost:4000 ` will not jump out to ` https://docs.meteor.com `
41+ ``` diff
42+ - url: http://docs.meteor.com/
43+ + url: http://localhost:4000/
44+ ```
45+ 2 . reconnect the meteor submodule in ` /code ` to your local meteor folder.
46+ ``` bash
47+ # REMOVE submodule
48+ # Remove the submodule entry from .git/config
49+ git submodule deinit -f code
50+
51+ # Remove the submodule directory from the superproject's
52+ # .git/modules directory
53+ rm -rf .git/modules/code
54+
55+ # Remove the entry in .gitmodules and remove the submodule directory
56+ # located at path/to/submodule
57+ git rm -f code
58+
59+ # ADD your local meteor submodule
60+ git submodule add /path/to/local/meteor code
61+ ```
62+
63+ 3 . Hexo builds if you are just changing md files in sources then
64+ hexo will watch for changes and update. If you are making changes
65+ in the ` /code ` folder then you will need to ` npm clean && npm start ` .
66+
67+ Of course, do not commit any of these changes.
You can’t perform that action at this time.
0 commit comments