Skip to content

Commit

Permalink
Fixes typedoc generation for github pages
Browse files Browse the repository at this point in the history
refs #39

- removes the `docs:clean` task because that's handled by typedoc now
- removes the `posttypedoc` task because the `.nojekyll` file for github pages is added by typedoc config now
- converts the typedoc config from `.json` to `.js`
- removes the shim used to support the unmaintained typedoc page plugin
- revises the release docs to reflect the step of generating docs
- revises the document contribution guide to relfect schema of the new plugin
  • Loading branch information
ominestre committed Apr 13, 2022
1 parent 447564c commit 1630463
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 410 deletions.
32 changes: 14 additions & 18 deletions documentation/how-to/contribute-to-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,25 @@ Create your new `.md` file in one of the folders mentioned above based upon your

### Step two

Update the `typedoc.json` configuration file. The `pages` object contains all of the configuration for embedding markdown in the generated docs.
Update the `typedoc.js` configuration file. The `pluginPages` object contains all of the configuration for embedding markdown in the generated docs.

```json
"pages": {
"groups": [
```js
pluginPages: {
source: './documentation/',
pages: [
{
"title": "How To",
"pages": [
{ "title": "Contribute to the documentation", "source": "./documentation/how-to/contribute-to-docs.md" }
]
}
title: 'How To',
children: [
{ title: 'Contribute to these docs', source: './how-to/contribute-to-docs.md' },
{ title: 'Create a config file', source: './how-to/create-a-config-file.md' },
{ title: 'Release', source: './how-to/create-a-config-file.md' },
],
},
],
"output": "pages"
}
},
```

A `group` is a section header that the documents belong to. In the example above you can see there is a group named `How To` and it's member pages are describe below. To add your new documentation determine which group it should belong to and add a new page.

```json
"pages": [
{ "title": "My new docs", "source": "./documentation/how-to/my-new-docs.md" }
]
```
Above you can see a page with just a title and no source for `How To`. This creates the How To section header and brings all the specified child documents under it.

## Updating API/Reference documentation

Expand Down
11 changes: 6 additions & 5 deletions documentation/how-to/release.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# How to release a new version of Rotten Deps

1. Create a new changelog entry using semver in the title. The release version in the follow steps is pulled from the changelog version header
2. Run the release script using `bash scripts/release.sh`
2. Run the command `yarn run docs` to generate the new documentation for the GitHub page
3. Run the release script using `bash scripts/release.sh`
- Since the documentation reads the version of the `package.json` this first creates a dummy NPM version without creating a commit or tag
- Once the dummy version is created the docs are generated
- The docs and `CHANGELOG.md` are staged in git
- The real `npm version` is run creating a release commit and tag
3. Push the release using `git push origin main`
4. Push the new tag using `git push --tags`
5. Login to NPM using `npm login`
6. Publish to NPM using `npm publish --access public`
4. Push the release using `git push origin main`
5. Push the new tag using `git push --tags`
6. Login to NPM using `npm login`
7. Publish to NPM using `npm publish --access public`
335 changes: 0 additions & 335 deletions documentation/type.hbs

This file was deleted.

Loading

0 comments on commit 1630463

Please sign in to comment.