Skip to content

Commit 64a70dc

Browse files
authored
Migrate to docusaurus (#2)
1 parent ee40e20 commit 64a70dc

File tree

207 files changed

+21670
-16128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+21670
-16128
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,4 +313,4 @@
313313
"template-curly-spacing": ["error", "never"],
314314
"yield-star-spacing": ["error", "before"]
315315
}
316-
}
316+
}

.gitignore

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
1-
# Logs
2-
logs
3-
*.log
1+
# Dependencies
2+
/node_modules
43

5-
# Runtime data
6-
pids
7-
*.pid
8-
*.seed
4+
# Production
5+
/build
96

10-
# Directory for instrumented libs generated by jscoverage/JSCover
11-
lib-cov
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
1210

13-
# Coverage directory used by tools like istanbul
14-
coverage
15-
16-
# Compiled binary addons (http://nodejs.org/api/addons.html)
17-
build/Release
18-
19-
# Dependency directories
20-
bower_components
21-
node_modules
22-
23-
# Dotfile detritus
11+
# Misc
2412
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CHANGELOG
2+
3+
## Migrate to Docusaurus
4+
5+
- Moved all markdown from `content/en` to `docs/`
6+
- Removed `.eslintignore` as not required.
7+
- Removed `data/redirects.json` and added redirects in `docusaurus.config.js`.
8+
- Removed `data/toc.json` as the hierarchy is now maintained in the sidebar.
9+
- Removed all html files.
10+
- Removed `content/en/index.md` as the list can be browsed from the sidebar.
11+
- Replaced `.gitignore` with Docusaurus generated.
12+
- Added Docusaurus generated `babel.config.js`.
13+
- Added contribute page.
14+
- Changes in markdown content:
15+
- Replaced `{% example "Inline tag used within a block tag" %}` with `- **Inline tag used within a block tag**`.
16+
- Removed `{% endexample %}`.
17+
- Removed `.html` suffix from internal links.
18+
- Prettier changes.
19+

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,34 @@ If you just want to read the documentation, please visit [Use JSDoc][use-jsdoc].
66

77
## Contributing to the documentation
88

9-
The HTML docs are generated with [Metalsmith][] and [Gulp][]. If you'd like to contribute to the
10-
docs, make sure Node.js and npm are installed, then follow these steps:
9+
The documentation site is based on [Docusaurus](https://docusaurus.io/). If you'd like to contribute to the docs, make sure Node.js and npm are installed, then follow these steps:
1110

1211
1. Clone this repository:
1312

14-
[email protected]:jsdoc3/jsdoc3.github.com.git
13+
[email protected]:jsdoc/jsdoc.github.io.git
1514

16-
2. Install Bower and Gulp globally:
1715

18-
npm install -g gulp
19-
npm install -g bower
20-
21-
3. Install the dependencies:
16+
2. Install the dependencies:
2217

2318
npm install
24-
bower install
2519

26-
4. Make your changes in the `content` directory, which contains the source files for the docs.
20+
3. Make your changes in the `docs` directory, which contains the source files for the docs.
2721

2822
The first few lines of each source file contain [YAML][] front matter, which is metadata in
2923
[YAML][] format. If you need to use the character `@` or `[` at the start of a YAML value, you
3024
can escape it with a backslash. For example, write `title: @class` as `title: \@class`.
3125

32-
5. Rebuild the HTML files:
26+
4. Spawn your local instance:
27+
28+
npm run
3329

34-
gulp
30+
5. Build and serve locally:
31+
32+
npm run build
33+
npm run serve
3534

36-
6. Review the updated HTML files, and make sure your changes look okay. In particular, if you edited
37-
the YAML front matter, make sure your changes are reflected in the generated HTML files.
35+
6. Review the updated markdown files, and make sure `npm run build` completes successfully and your changes look okay. In particular, if you edited
36+
the YAML front matter, make sure your changes are reflected in the generated site.
3837

3938
7. Submit a pull request with your changes.
4039

about-block-inline-tags.html

Lines changed: 0 additions & 107 deletions
This file was deleted.

0 commit comments

Comments
 (0)