chore: fix path prefix of reference generation scripts (#5324)
* chore: fix path prefix of reference generation scripts * fix build step
This commit is contained in:
1 parent
05dbc7a877
commit
85c4cdf9af
5 files changed
+21
-4
No files matched your search
@@ -36,6 +36,10 @@ jobs:
|
|||||||
run: yarn install
|
run: yarn install
|
||||||
working-directory: docs-util
|
working-directory: docs-util
|
||||||
|
|
||||||
|
- name: Build Workspace dependencies
|
||||||
|
run: yarn build
|
||||||
|
working-directory: docs-util
|
||||||
|
|
||||||
- name: Generate Services Reference
|
- name: Generate Services Reference
|
||||||
run: yarn generate:reference services
|
run: yarn generate:reference services
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: docs-util/packages/scripts
|
||||||
@@ -122,6 +126,10 @@ jobs:
|
|||||||
run: yarn install
|
run: yarn install
|
||||||
working-directory: docs-util
|
working-directory: docs-util
|
||||||
|
|
||||||
|
- name: Build Workspace dependencies
|
||||||
|
run: yarn build
|
||||||
|
working-directory: docs-util
|
||||||
|
|
||||||
- name: Generate Entities Reference
|
- name: Generate Entities Reference
|
||||||
run: yarn generate:reference entities
|
run: yarn generate:reference entities
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: docs-util/packages/scripts
|
||||||
@@ -167,6 +175,10 @@ jobs:
|
|||||||
run: yarn install
|
run: yarn install
|
||||||
working-directory: docs-util
|
working-directory: docs-util
|
||||||
|
|
||||||
|
- name: Build Workspace dependencies
|
||||||
|
run: yarn build
|
||||||
|
working-directory: docs-util
|
||||||
|
|
||||||
- name: Generate Services Reference
|
- name: Generate Services Reference
|
||||||
run: yarn generate:reference js-client
|
run: yarn generate:reference js-client
|
||||||
working-directory: docs-util/packages/scripts
|
working-directory: docs-util/packages/scripts
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
const path = require("path")
|
const path = require("path")
|
||||||
const globalTypedocOptions = require("./base")
|
const globalTypedocOptions = require("./base")
|
||||||
|
|
||||||
const pathPrefix = path.join(__dirname, "..", "..")
|
const pathPrefix = path.join(__dirname, "..", "..", "..")
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...globalTypedocOptions,
|
...globalTypedocOptions,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
const path = require("path")
|
const path = require("path")
|
||||||
const globalTypedocOptions = require("./base")
|
const globalTypedocOptions = require("./base")
|
||||||
|
|
||||||
const pathPrefix = path.join(__dirname, "..", "..")
|
const pathPrefix = path.join(__dirname, "..", "..", "..")
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...globalTypedocOptions,
|
...globalTypedocOptions,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
const path = require("path")
|
const path = require("path")
|
||||||
const globalTypedocOptions = require("./base")
|
const globalTypedocOptions = require("./base")
|
||||||
|
|
||||||
const pathPrefix = path.join(__dirname, "..", "..")
|
const pathPrefix = path.join(__dirname, "..", "..", "..")
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...globalTypedocOptions,
|
...globalTypedocOptions,
|
||||||
|
|||||||
+6
-1
@@ -1,5 +1,6 @@
|
|||||||
import { MarkdownTheme } from "../../theme"
|
import { MarkdownTheme } from "../../theme"
|
||||||
import * as Handlebars from "handlebars"
|
import * as Handlebars from "handlebars"
|
||||||
|
import { SectionKey } from "../../types"
|
||||||
|
|
||||||
export default function (theme: MarkdownTheme) {
|
export default function (theme: MarkdownTheme) {
|
||||||
Handlebars.registerHelper(
|
Handlebars.registerHelper(
|
||||||
@@ -7,7 +8,11 @@ export default function (theme: MarkdownTheme) {
|
|||||||
function (sectionName: string): boolean {
|
function (sectionName: string): boolean {
|
||||||
const { sections } = theme.getFormattingOptionsForLocation()
|
const { sections } = theme.getFormattingOptionsForLocation()
|
||||||
|
|
||||||
return !sections || !(sectionName in sections) || sections[sectionName]
|
return (
|
||||||
|
!sections ||
|
||||||
|
!(sectionName in sections) ||
|
||||||
|
sections[sectionName as SectionKey]
|
||||||
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user