-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db463c5
commit 3af82a8
Showing
6 changed files
with
103 additions
and
135 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,69 @@ | ||
name: Build pg_tde documentation | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- Docs | ||
|
||
jobs: | ||
build: | ||
name: Deploy docs | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
#Pull the latest changes | ||
- name: Chekout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
#Prepare the env | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
|
||
#Configure git | ||
- name: Configure git | ||
env: | ||
ROBOT_TOKEN: ${{ secrets.ROBOT_TOKEN }} | ||
run: | | ||
git config --global url."https://percona-platform-robot:${ROBOT_TOKEN}@github.com".insteadOf "https://github.com" | ||
git config user.name "GitHub Action" | ||
git config user.email "[email protected]" | ||
git config user.password "${ROBOT_TOKEN}" | ||
echo "GIT_USER=percona-platform-robot:${ROBOT_TOKEN}" >> $GITHUB_ENV | ||
#Set up MkDocs | ||
- name: Install MkDocs | ||
run: | | ||
cd documentation | ||
python -m pip install --upgrade pip | ||
pip install wheel | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
|
||
# Deploy docs | ||
- name: Deploy docs | ||
run: | | ||
cd documentation | ||
mike deploy main -p | ||
mike set-default main -p | ||
# - name: Install Node.js 14.x | ||
# uses: percona-platform/setup-node@v2 | ||
# with: | ||
# node-version: "14" | ||
# | ||
# - name: Spelling | ||
# run: | | ||
# npx markdown-spellcheck --report --en-us --ignore-acronyms --ignore-numbers "docs/**/*.md" || true | ||
# Ignore errors, just inspect results | ||
# - name: Grammar | ||
# run: | | ||
# npx write-good --no-passive docs/**/*.md || true | ||
# # Ignore errors, just inspect results | ||
|
||
|
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
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
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
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
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,16 @@ | ||
|
||
Markdown | ||
mkdocs | ||
mkdocs-versioning | ||
mkdocs-macros-plugin | ||
mkdocs-exclude | ||
markdown-include | ||
mkdocs-material | ||
mkdocs-with-pdf | ||
mkdocs-git-revision-date-localized-plugin | ||
mkdocs-material-extensions | ||
mkdocs-bootstrap-tables-plugin | ||
mkdocs-section-index | ||
mkdocs-htmlproofer-plugin | ||
mkdocs-meta-descriptions-plugin | ||
mike |