Skip to content

Commit

Permalink
Merge branch 'main' into chore-add-detailed-errormsg
Browse files Browse the repository at this point in the history
  • Loading branch information
filzrev authored Mar 2, 2024
2 parents 63e019f + baf0718 commit 834fcb1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{ github.event.pull_request.head.repo.full_name }}
lfs: true

- uses: ./.github/actions/build
Expand Down Expand Up @@ -66,7 +67,7 @@ jobs:
path: /tmp/coredump*

publish-docs:
if: github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [test]
environment:
name: github-pages
Expand Down
4 changes: 3 additions & 1 deletion templates/default/ManagedReference.html.primary.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ exports.transform = function (model) {
model.isClass = false;
model.isEnum = true;
}
model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
if(model._disableToc === undefined) {
model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
}
model._disableNextArticle = true;

if (extension && extension.postTransform) {
Expand Down
4 changes: 3 additions & 1 deletion templates/default/RestApi.html.primary.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ exports.transform = function (model) {
if (restApiCommon && restApiCommon.transform) {
model = restApiCommon.transform(model);
}
model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
if(model._disableToc === undefined) {
model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
}
model._disableNextArticle = true;

if (extension && extension.postTransform) {
Expand Down
4 changes: 3 additions & 1 deletion templates/default/UniversalReference.html.primary.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ exports.transform = function (model) {
model = urefCommon.transform(model);
}

model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
if(model._disableToc === undefined) {
model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
}
model._disableNextArticle = true;

if (extension && extension.postTransform) {
Expand Down
4 changes: 3 additions & 1 deletion templates/default/conceptual.html.primary.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ exports.transform = function (model) {
model = extension.preTransform(model);
}

model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
if(model._disableToc === undefined) {
model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
}
model.docurl = model.docurl || common.getImproveTheDocHref(model, model._gitContribute, model._gitUrlPattern);

if (extension && extension.postTransform) {
Expand Down

0 comments on commit 834fcb1

Please sign in to comment.