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:
Shahed Nasser
2023-10-09 16:43:54 +03:00
committed by GitHub
parent 05dbc7a877
commit 85c4cdf9af
5 changed files with 21 additions and 4 deletions

View File

@@ -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

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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]
)
}
)
}