forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add generate-docs (autowarefoundation#52)
* docs(mkdocs.yaml): add mike Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * docs(mkdocs.yaml): add navigation.indexes Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * docs(mkdocs.yaml): add extra.css for changing content width Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * docs(mkdocs.yaml): fix color Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * docs(mkdocs.yaml): fix image path Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * ci: add generate-docs Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * ci: add remove-old-pr-docs Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * ci(.markdownlint.yaml): Ignore MD046 for admonition markdownlint/markdownlint#215 Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
- Loading branch information
1 parent
391fed5
commit 6fac1c5
Showing
5 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: generate-docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- tier4/proposal | ||
paths: | ||
- "mkdocs.yaml" | ||
- "**/*.md" | ||
- "**/*.svg" | ||
- "**/*.png" | ||
- "**/*.css" | ||
pull_request_target: | ||
paths: | ||
- "mkdocs.yaml" | ||
- "**/*.md" | ||
- "**/*.svg" | ||
- "**/*.png" | ||
- "**/*.css" | ||
|
||
jobs: | ||
get-docs-version-name: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-get-docs-version-name.yaml@tier4/proposal | ||
|
||
generate-docs: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-generate-docs.yaml@tier4/proposal | ||
needs: get-docs-version-name | ||
with: | ||
script-ref: tier4/proposal | ||
mkdocs-yaml: mkdocs.yaml | ||
version-name: ${{ needs.get-docs-version-name.outputs.version-name }} | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: remove-old-pr-docs | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
get-docs-version-name: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-get-docs-version-name.yaml@tier4/proposal | ||
|
||
remove-old-pr-docs: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-remove-docs.yaml@tier4/proposal | ||
needs: get-docs-version-name | ||
with: | ||
script-ref: tier4/proposal | ||
mkdocs-yaml: mkdocs.yaml | ||
version-name: ${{ needs.get-docs-version-name.outputs.version-name }} | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ MD024: | |
siblings_only: true | ||
MD033: false | ||
MD041: false | ||
MD046: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.md-grid { | ||
max-width: 1920px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters