Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit 9f1b719

Browse files
authored
Merge pull request #754 from brucejo75/brucejo75/document_local_meteor_repo
Document how to test meteor source changes locally
2 parents cc7c244 + 9f9e601 commit 9f1b719

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff 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

3333
Ensure 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.

0 commit comments

Comments
 (0)