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:
12
.github/workflows/generate-references.yml
vendored
12
.github/workflows/generate-references.yml
vendored
@@ -36,6 +36,10 @@ jobs:
|
||||
run: yarn install
|
||||
working-directory: docs-util
|
||||
|
||||
- name: Build Workspace dependencies
|
||||
run: yarn build
|
||||
working-directory: docs-util
|
||||
|
||||
- name: Generate Services Reference
|
||||
run: yarn generate:reference services
|
||||
working-directory: docs-util/packages/scripts
|
||||
@@ -122,6 +126,10 @@ jobs:
|
||||
run: yarn install
|
||||
working-directory: docs-util
|
||||
|
||||
- name: Build Workspace dependencies
|
||||
run: yarn build
|
||||
working-directory: docs-util
|
||||
|
||||
- name: Generate Entities Reference
|
||||
run: yarn generate:reference entities
|
||||
working-directory: docs-util/packages/scripts
|
||||
@@ -167,6 +175,10 @@ jobs:
|
||||
run: yarn install
|
||||
working-directory: docs-util
|
||||
|
||||
- name: Build Workspace dependencies
|
||||
run: yarn build
|
||||
working-directory: docs-util
|
||||
|
||||
- name: Generate Services Reference
|
||||
run: yarn generate:reference js-client
|
||||
working-directory: docs-util/packages/scripts
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
const path = require("path")
|
||||
const globalTypedocOptions = require("./base")
|
||||
|
||||
const pathPrefix = path.join(__dirname, "..", "..")
|
||||
const pathPrefix = path.join(__dirname, "..", "..", "..")
|
||||
|
||||
module.exports = {
|
||||
...globalTypedocOptions,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
const path = require("path")
|
||||
const globalTypedocOptions = require("./base")
|
||||
|
||||
const pathPrefix = path.join(__dirname, "..", "..")
|
||||
const pathPrefix = path.join(__dirname, "..", "..", "..")
|
||||
|
||||
module.exports = {
|
||||
...globalTypedocOptions,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
const path = require("path")
|
||||
const globalTypedocOptions = require("./base")
|
||||
|
||||
const pathPrefix = path.join(__dirname, "..", "..")
|
||||
const pathPrefix = path.join(__dirname, "..", "..", "..")
|
||||
|
||||
module.exports = {
|
||||
...globalTypedocOptions,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { MarkdownTheme } from "../../theme"
|
||||
import * as Handlebars from "handlebars"
|
||||
import { SectionKey } from "../../types"
|
||||
|
||||
export default function (theme: MarkdownTheme) {
|
||||
Handlebars.registerHelper(
|
||||
@@ -7,7 +8,11 @@ export default function (theme: MarkdownTheme) {
|
||||
function (sectionName: string): boolean {
|
||||
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