Skip to content

Commit

Permalink
Merge pull request #1 from iasql/flatten
Browse files Browse the repository at this point in the history
Simplify naming and nesting
  • Loading branch information
depombo authored Dec 23, 2022
2 parents ebff7be + 3a14747 commit 6cc9ce5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
A plugin to automatically generate SQL documentation for docusaurus

Forked from: https://github.com/tgreyuk/typedoc-plugin-markdown

## Local testing

Use "npm link" to pick up the live changes in the Docusaurus instance used
2 changes: 1 addition & 1 deletion dist/lib/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class MarkdownTheme extends typedoc_1.Theme {
page.model instanceof typedoc_1.DeclarationReflection ? page.model : undefined;
}
get globalsFile() {
return "sql_reference.md";
return "sql.md";
}
}
exports.MarkdownTheme = MarkdownTheme;
Expand Down
8 changes: 4 additions & 4 deletions dist/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ exports.getPluginOptions = void 0;
const DEFAULT_PLUGIN_OPTIONS = {
id: "default",
docsRoot: "docs",
out: "sql",
out: "reference",
cleanOutputDir: true,
sidebar: {
fullNames: false,
categoryLabel: "SQL reference",
categoryLabel: "Reference",
indexLabel: undefined,
readmeLabel: "Introduction",
readmeLabel: "SQL",
position: null,
autoConfiguration: true,
usedSidebar: "docs",
Expand All @@ -19,7 +19,7 @@ const DEFAULT_PLUGIN_OPTIONS = {
hideBreadcrumbs: true,
hidePageTitle: true,
hideMembersSymbol: false,
entryDocument: "sql_reference.md",
entryDocument: "sql.md",
plugin: ["none"],
watch: false,
includeExtension: true,
Expand Down
2 changes: 1 addition & 1 deletion dist/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class DocusaurusTheme extends theme_1.MarkdownTheme {
});
}
get globalsFile() {
return "sql_reference.md";
return "sql.md";
}
}
__decorate([
Expand Down
2 changes: 1 addition & 1 deletion src/lib/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,6 @@ export class MarkdownTheme extends Theme {
}

get globalsFile() {
return "sql_reference.md";
return "sql.md";
}
}
10 changes: 5 additions & 5 deletions src/options.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { PluginOptions } from "./types";

const DEFAULT_PLUGIN_OPTIONS: PluginOptions = {
id: "default",
id: "reference",
docsRoot: "docs",
out: "sql",
out: "reference",
cleanOutputDir: true,
sidebar: {
fullNames: false,
categoryLabel: "SQL reference",
categoryLabel: "Reference",
indexLabel: undefined,
readmeLabel: "Introduction",
readmeLabel: "SQL",
position: null,
autoConfiguration: true,
usedSidebar: "docs",
Expand All @@ -18,7 +18,7 @@ const DEFAULT_PLUGIN_OPTIONS: PluginOptions = {
hideBreadcrumbs: true,
hidePageTitle: true,
hideMembersSymbol: false,
entryDocument: "sql_reference.md",
entryDocument: "sql.md",
plugin: ["none"],
watch: false,
includeExtension: true,
Expand Down
2 changes: 1 addition & 1 deletion src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class DocusaurusTheme extends MarkdownTheme {
}

get globalsFile() {
return "sql_reference.md";
return "sql.md";
}
}

Expand Down

0 comments on commit 6cc9ce5

Please sign in to comment.