@gobstones/typedoc-theme-gobstones
v0.5.2
Published
A simple theme for the Gobstones generated documentation.
Readme
typedoc-theme-gobstones
This a customized theme for TypeDoc used for all the generated documentation throughout the GobstonesWeb2 project. It's based on the default theme used by TypeDoc, with mild improvements in readability and styling, and includes by default several plugins built-in so the user does not require to include them in their configuration. Included plugins are:
- typedoc-plugin-mdn-links
- typedoc-plugin-merge-modules
- typedoc-plugin-remove-references
- typedoc-plugin-missing-exports (With modifications)
Install
This library is included in the gobstones-scripts library, and used in the provided TypeDoc configuration by default. If you are using gobstones-scripts you don't need to do anything to use this library.
If you want to add this to a project that does not include gobstones-scripts, just install by using npm.
npm install @gobstones/typedoc-theme-gobstonesUsage
Again, if you are using gobstones-scripts with the default configuration you don't need to do anything. If you want to use in a different type of project, or provide your custom configuration, read the following.
Configure your project to use this theme by editing your typedoc.config.mjs file. Add the theme as a plugin, and set the theme to be gobstones. Additionally, configure properties for the default theme and plugins so the theme behaves as expected.
export default {
// Configuration
tsconfig: './tsconfig.json',
compilerOptions: {
rootDir: './src'
},
plugin: ['./dist/index.mjs'],
// Input
entryPoints: ['./src'],
// Output
out: './docs',
theme: 'gobstones'
};You should now be able to run typedoc command to get the documentation. If you are using gobstones-scripts, just execute nps start doc or one of it's related commands as usual.
Testing newer versions of the library
To develop this library you will need to build the library and publish to a local repository, similar as to how you test gobstones-scripts. You may read about how to setup a verdaccio server in your local environment at the gobstones-scripts documentation, and if you have the gobstones-scripts project, you may even run the same server.
Contributing
See our Contributions Guidelines to contribute.
