Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes typedoc generation for github pages #82

Merged
merged 1 commit into from
Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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