Skip to content

Commit

Permalink
[PFX-406] - Deprecate Docsify (#648)
Browse files Browse the repository at this point in the history
* deprecate docsify

* update docs

* fix dep
  • Loading branch information
mmason2-godaddy authored Jan 5, 2024
1 parent 252cbf9 commit 0bddca7
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 29 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/gasket-plugin-docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ module.exports = {
}
```

The [@gasket/plugin-docsify] hooks this lifecycle, to render the docs using
Docsify.
The [@gasket/plugin-docusaurus] hooks this lifecycle, to render the docs using
Docusaurus.

### docsGenerate

Expand Down Expand Up @@ -246,7 +246,7 @@ serve the content in a more viewable fashion for the user.
[DocsTransformHandler]: docs/api.md#DocsTransformHandler

[@gasket/plugin-metadata]: /packages/gasket-plugin-metadata/README.md
[@gasket/plugin-docsify]: /packages/gasket-plugin-docsify/README.md
[@gasket/plugin-docusaurus]: /packages/gasket-plugin-docusaurus/README.md
[metadata]: /packages/gasket-plugin-metadata/README.md

[rustdoc]:https://doc.rust-lang.org/rustdoc/
Expand Down
1 change: 1 addition & 0 deletions packages/gasket-plugin-docsify/lib/generate-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const srcIndex = path.join(srcDir, 'index.html');
* @param {Object} docsifyConfig - Config for docsify plugin
* @param {DocsConfigSet} docsConfigSet -
* @returns {Promise<string>} output file
* @deprecated use @gasket/plugin-docusaurus
*/
// eslint-disable-next-line max-statements
async function generateContent(docsifyConfig, docsConfigSet) {
Expand Down
2 changes: 1 addition & 1 deletion packages/gasket-preset-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To see complete the list of plugins configured in your app, and what commands, l
- [@gasket/plugin-config](/packages/gasket-plugin-config/README.md)
- [@gasket/plugin-swagger](/packages/gasket-plugin-swagger/README.md)
- [@gasket/plugin-docs](/packages/gasket-plugin-docs/README.md)
- [@gasket/plugin-docsify](/packages/gasket-plugin-docsify/README.md)
- [@gasket/plugin-docusaurus](/packages/gasket-plugin-docusaurus/README.md)
- [@gasket/plugin-express](/packages/gasket-plugin-express/README.md)
- [@gasket/plugin-https](/packages/gasket-plugin-https/README.md)
- [@gasket/plugin-lint](/packages/gasket-plugin-lint/README.md)
Expand Down
2 changes: 1 addition & 1 deletion packages/gasket-preset-api/lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '@gasket/plugin-config';
import '@gasket/plugin-docs';
import '@gasket/plugin-docsify';
import '@gasket/plugin-docusaurus';
import '@gasket/plugin-express';
import '@gasket/plugin-https';
import '@gasket/plugin-lint';
Expand Down
2 changes: 1 addition & 1 deletion packages/gasket-preset-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependencies": {
"@gasket/plugin-config": "^6.43.0",
"@gasket/plugin-docs": "^6.44.1",
"@gasket/plugin-docsify": "^6.44.1",
"@gasket/plugin-docusaurus": "^6.43.0",
"@gasket/plugin-express": "^6.44.0",
"@gasket/plugin-https": "^6.44.0",
"@gasket/plugin-lint": "^6.44.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/gasket-typescript-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@gasket/plugin-command": "^6.43.0",
"@gasket/plugin-config": "^6.43.0",
"@gasket/plugin-docs": "^6.44.1",
"@gasket/plugin-docsify": "^6.44.1",
"@gasket/plugin-docusaurus": "^6.43.0",
"@gasket/plugin-elastic-apm": "^6.43.0",
"@gasket/plugin-express": "^6.44.0",
"@gasket/plugin-https": "^6.44.0",
Expand Down
18 changes: 0 additions & 18 deletions packages/gasket-typescript-tests/test/plugin-docsify.spec.ts

This file was deleted.

15 changes: 15 additions & 0 deletions packages/gasket-typescript-tests/test/plugin-docusaurus.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { GasketConfigFile } from '@gasket/engine';
import '@gasket/plugin-docusaurus';

describe('@gasket/plugin-docusaurus', () => {
it('adds a docusaurus config section', () => {
const config: GasketConfigFile = {
docusaurus: {
rootDir: 'docs',
docsDir: 'docs',
port: 3000,
host: 'localhost'
}
};
});
});

0 comments on commit 0bddca7

Please sign in to comment.