Skip to content

Commit

Permalink
chore: Refactor theme context
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Mar 16, 2024
1 parent 270ba16 commit 0e213c7
Show file tree
Hide file tree
Showing 173 changed files with 3,524 additions and 2,374 deletions.
4 changes: 0 additions & 4 deletions devtools/examples/docusaurus3/docusaurus.config.js
Expand Up @@ -60,7 +60,6 @@ const config = {
sidebar: { pretty: true },
outputFileStrategy: 'members',
cleanOutputDir: true,
plugin: ['typedoc-plugin-coverage'],
},
],
[
Expand All @@ -77,7 +76,6 @@ const config = {
entryPoints:
'../../../packages/typedoc-plugin-markdown/test/fixtures/src/groups/**/*.ts',
cleanOutputDir: true,
plugin: ['typedoc-plugin-coverage'],
},
],
[
Expand All @@ -97,7 +95,6 @@ const config = {
outputFileStrategy: 'modules',
entryModule: 'index',
cleanOutputDir: true,
plugin: ['typedoc-plugin-coverage'],
},
],
[
Expand All @@ -115,7 +112,6 @@ const config = {
'../../../packages/typedoc-plugin-markdown/test/fixtures/src/packages/*',
entryPointStrategy: 'packages',
sidebar: { pretty: true },
plugin: ['typedoc-plugin-coverage'],
},
],
],
Expand Down
6 changes: 3 additions & 3 deletions devtools/packages/helpers/constants.ts
Expand Up @@ -4,8 +4,8 @@ export const PRESETS_PATH = `${process.cwd()}/src/options/presets.ts`;

export const DOCS_CONFIG: Record<string, DocsConfig> = {
['typedoc-plugin-markdown']: {
declarationsPath: `${process.cwd()}/src/plugin/options/declarations.ts`,
optionsPath: 'options',
declarationsPath: `${process.cwd()}/src/app/options/declarations.ts`,
optionsPath: '',
docsPath: '',
declarations: true,
presets: false,
Expand All @@ -27,7 +27,7 @@ export const DOCS_CONFIG: Record<string, DocsConfig> = {
['typedoc-github-wiki-theme']: {
declarationsPath: `${process.cwd()}/src/options/declarations.ts`,
optionsPath: 'themes/github-wiki',
docsPath: '/themes/github-wiki/introduction',
docsPath: '/themes/github-wiki',
declarations: true,
presets: true,
},
Expand Down
2 changes: 1 addition & 1 deletion devtools/packages/prebuild-options/tasks/generate-docs.ts
Expand Up @@ -146,7 +146,7 @@ ${JSON.stringify(
}

const optionDocPath = path.join(
getDocsPath(docsConfig.docsPath),
getDocsPath(docsConfig.optionsPath),
'options.mdx',
);

Expand Down
2 changes: 1 addition & 1 deletion devtools/packages/testing/lint.mdx.mjs
Expand Up @@ -16,7 +16,7 @@ lintMdx();

async function lintMdx() {
const mdFiles = await glob(`./test/out/**/opts-1/**/*.md`);
console.log(mdFiles);

mdFiles.forEach(async (file) => {
const vfile = await read(file);
try {
Expand Down
1 change: 1 addition & 0 deletions docs/pages/_meta.json
@@ -1,5 +1,6 @@
{
"index": "Introduction",
"api": "",
"quick-start": "",
"options": "",
"guide": "Guide",
Expand Down
170 changes: 0 additions & 170 deletions docs/pages/helpers.md

This file was deleted.

20 changes: 20 additions & 0 deletions docs/pages/options.mdx
Expand Up @@ -565,6 +565,26 @@ If undefined all urls will be relative.

___

### preserveMarkup

<Callout>Preserves non-html markup tags in comments.</Callout>

> Accepts a boolean value. Defaults to `false`.
By default non html tags inside comments are escaped.

This option should be used when parsers require the preservation of non-html tags, for example if some custom JSX tags are required to be interpreted in final output.


```json filename="typedoc.json"
{
"preserveMarkup": false
}

```

___

### preserveAnchorCasing

<Callout>Preserve anchor casing when generating link to symbols.</Callout>
Expand Down
4 changes: 3 additions & 1 deletion docs/styles.css
@@ -1,4 +1,6 @@
.nextra-toc a[href^='#parameters'],
.nextra-toc a[href^='#returns'] {
.nextra-toc a[href^='#returns'],
.nextra-toc a[href^='#source'],
.nextra-toc a[href^='#overrides'] {
display: none;
}

0 comments on commit 0e213c7

Please sign in to comment.