Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to dedicated docs website #131

Merged
merged 15 commits into from
Aug 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- [ ] The commit message follows our [guidelines](https://github.com/get-woke/woke/blob/main/CONTRIBUTING.md)
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features) see [docs/README.md](https://github.com/get-woke/woke/blob/main/docs/README.md)


**What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
Expand Down
45 changes: 38 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,45 @@
name: Documentation refresh
name: MkDocs page

on:
push:
tags:
- v*
branches: [ main ]
paths:
- "docs/**"
- mkdocs.yml
- .github/workflows/docs.yml
pull_request:
paths:
- "docs/**"
- mkdocs.yml
- .github/workflows/docs.yml

jobs:
docs:
name: Renew documentation
mkdocs:
runs-on: ubuntu-latest
steps:
- name: Pull new module version
uses: andrewslotin/[email protected]
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install -r docs/requirements.txt

- name: MkDocs build
if: github.event_name == 'pull_request'
run: mkdocs build

- name: MkDocs deploy
if: github.event_name != 'pull_request'
run: |
# Hard-code user configuration
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions"
mkdocs gh-deploy --force
markdownlint:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v2
- uses: nosborn/[email protected]
with:
files: docs/*.md
config_file: .markdownlint.json
14 changes: 14 additions & 0 deletions .github/workflows/go-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Documentation refresh

on:
push:
tags:
- v*

jobs:
docs:
name: Renew documentation
runs-on: ubuntu-latest
steps:
- name: Pull new module version
uses: andrewslotin/[email protected]
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ dist/*
# pprof files
*.test
*.prof

# mkdocs
site/
3 changes: 2 additions & 1 deletion .markdownlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"line-length": false,
"no-emphasis-as-heading": false,
"no-inline-html": false,
"first-line-h1": false
"first-line-h1": false,
"no-duplicate-header": false
}
1 change: 1 addition & 0 deletions .wokeignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ pkg/rule/default.yaml
example.yaml
README.md
testdata
docs/*.md
Loading