-
Notifications
You must be signed in to change notification settings - Fork 5
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
80b4fb1
commit 8144ba9
Showing
29 changed files
with
581 additions
and
239 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
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ env: | |
permissions: write-all | ||
jobs: | ||
demo-deploy: | ||
# continue-on-error: true | ||
continue-on-error: true | ||
name: Trigger test deployments | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -26,23 +26,35 @@ jobs: | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/${TARGET_OWNER}/${TARGET_REPO}/dispatches \ | ||
-d "{\"event_type\":\"deploy\",\"client_payload\":{\"targets\":\"${GITHUB_REPOSITORY}:${HEAD}\", \"use-cache\":\"true\"}}" | ||
# This would be better if it worked | ||
# - name: Run 'deploy.yml' Workflow | ||
# uses: convictional/[email protected] | ||
# with: | ||
# owner: ${TARGET_OWNER} | ||
# repo: ${TARGET_REPO} | ||
# github_token: ${{ secrets.PAT }} | ||
# workflow_file_name: deploy.yml | ||
# client_payload: '{"targets":"${GITHUB_REPOSITORY}:${HEAD}", "use-cache":"true"}' | ||
# - name: Wait for Workflow Action | ||
# run: | | ||
# curl -L \ | ||
# -X POST \ | ||
# -H "Accept: application/vnd.github+json" \ | ||
# -H "Authorization: Bearer ${{ secrets.PAT }}" \ | ||
# -H "X-GitHub-Api-Version: 2022-11-28" \ | ||
# https://api.github.com/repos/${TARGET_OWNER}/${TARGET_REPO}/actions/runs/deploy.yml | ||
- name: Wait for Workflow Action | ||
run: | | ||
# Just give a minute or so to deploy | ||
sleep 60 | ||
# curl -L \ | ||
# -X POST \ | ||
# -H "Accept: application/vnd.github+json" \ | ||
# -H "Authorization: Bearer ${{ secrets.PAT }}" \ | ||
# -H "X-GitHub-Api-Version: 2022-11-28" \ | ||
# https://api.github.com/repos/${TARGET_OWNER}/${TARGET_REPO}/actions/runs/deploy.yml | ||
sleep 90 | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Post messages open requests | ||
run: | | ||
msg="Test deployment available at <a href=\"${DEPLOY_URL}/${HEAD}\">${DEPLOY_URL}/${GITHUB_REPOSITORY}/${HEAD}</a>" | ||
msg="Test deployment available at <a href=\"${DEPLOY_URL}/${GITHUB_REPOSITORY}/${HEAD}\">${DEPLOY_URL}/${GITHUB_REPOSITORY}/${HEAD}</a>" | ||
changed_pages="$(git diff --name-only origin/main -- '*.md')" | ||
# Logic for truncating out long sections commented out. | ||
# maxlines=-5 | ||
|
@@ -60,6 +72,6 @@ jobs: | |
# fi | ||
msg="${msg}</ul>" | ||
fi | ||
msg="${msg}<br><em>Test site may take a minute or so to deploy after PR Open or Update.</em>" | ||
msg="${msg}<br><br><em><a href="${DEPLOY_URL}">See all deployed demo sites</a></em>" | ||
(gh pr comment ${HEAD} --edit-last --body "${msg}") || (gh pr comment ${HEAD} --body "${msg}") | ||
echo "::info title=Deploy successful::${DEPLOY_URL}/${GITHUB_REPOSITORY}/${HEAD}" |
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
from_zendesk/cache/** | ||
from_zendesk/import_worktree/** | ||
public/* | ||
production/* | ||
**.pyc | ||
.venv/** | ||
.ipynb_checkpoints | ||
.venv/* | ||
dictionary.dic |
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 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Debug Proselint", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "checks/run_proselint.py", | ||
"args": ["docs/fail_checks.md"], | ||
"console": "integratedTerminal", | ||
"justMyCode": false | ||
}, | ||
{ | ||
"name": "Debug Meta Check", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "checks/run_meta_check.py", | ||
"args": ["docs/fail_checks.md"], | ||
"console": "integratedTerminal", | ||
"justMyCode": false | ||
}, | ||
{ | ||
"name": "Debug Testbuild", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "checks/run_test_build.py", | ||
"console": "integratedTerminal", | ||
"justMyCode": 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 |
---|---|---|
@@ -1,52 +1,52 @@ | ||
# NeSI support documentation | ||
|
||
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/nesi/support-docs?quickstart=1) | ||
|
||
[![Deploy to gh-pages](https://github.com/nesi/support-docs/actions/workflows/deploy.yml/badge.svg?branch=main&event=deployment_status)](https://github.com/nesi/support-docs/actions/workflows/deploy.yml) | ||
|
||
This repository contains the sources files for the NeSI support documentation. | ||
|
||
Rendered pages are visible at [https://docs.nesi.org.nz](http://docs.nesi.org.nz). | ||
|
||
## Contents | ||
|
||
The repository is organised using the following folders: | ||
|
||
- `checks` : scripts intended to be run by CI, | ||
- `docs`: markdown files, structure determines categories and sections[^1], | ||
- `docs/assets`: non-template related files, e.g. images, | ||
- `overrides`: theme overides or extensions for page templates. | ||
- `overrides/partials`: Overrides and extensions for sub components. | ||
|
||
[^1]: A section or category can be replaced by an `index.md` file, this will replace the default nav with a page. | ||
|
||
## Developer Documentation | ||
|
||
Following pages contain information to help maintain the documentation: | ||
|
||
- See [contributing](https://nesi.github.io/support-docs/CONTRIBUTING) ([local version](docs/CONTRIBUTING.md)), to learn how to you can contribute. | ||
- See [formatting](https://nesi.github.io/support-docs/FORMAT), for examples of markdown syntax. | ||
- See [create a new page](https://nesi.github.io/support-docs/NEWPAGE), for general principles to consider when writing pages. | ||
- See [macros](https://nesi.github.io/support-docs/MACROS), for `mkdocs-macros-plugin` environment. | ||
- See [checks](checks/README.md), for information on quality assurance tests. | ||
- See [workflows](.github/workflows/README.md), for information on CI workflows. | ||
|
||
## Viewing PR Branches | ||
|
||
![Demo Site](https://github.com/CallumWalley/support-docs-dev/actions/workflows/deploy.yml/badge.svg) | ||
|
||
Deployments of open pull requests can be viewed at [https://callumwalley.github.io/support-docs-dev/NAME-OF-BRANCH](https://callumwalley.github.io/support-docs-dev/) | ||
|
||
## Theme | ||
|
||
We are using the [mkdocs material theme](https://squidfunk.github.io/mkdocs-material/). | ||
|
||
## Analyics | ||
|
||
The site uses [Google analytics](https://analytics.google.com/analytics/web/#/p424742084). You will need to ask a google workspace admin to add you to the project. | ||
|
||
## Migration | ||
|
||
Migration of the Zendesk documentation is done using our [migration pipeline (NeSI internal GitLab](https://git.hpcf.nesi.org.nz/cwal219/migratedocs). | ||
|
||
Any one off filters (e.g. don't need to be checked every time, just when converting from ZD) should go there. | ||
# NeSI support documentation | ||
|
||
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/nesi/support-docs?quickstart=1) | ||
|
||
[![Deploy to gh-pages](https://github.com/nesi/support-docs/actions/workflows/deploy.yml/badge.svg?branch=main&event=deployment_status)](https://github.com/nesi/support-docs/actions/workflows/deploy.yml) | ||
|
||
This repository contains the sources files for the NeSI support documentation. | ||
|
||
Rendered pages are visible at [https://docs.nesi.org.nz](http://docs.nesi.org.nz). | ||
|
||
## Contents | ||
|
||
The repository is organised using the following folders: | ||
|
||
- `checks` : scripts intended to be run by CI, | ||
- `docs`: markdown files, structure determines categories and sections[^1], | ||
- `docs/assets`: non-template related files, e.g. images, | ||
- `overrides`: theme overides or extensions for page templates. | ||
- `overrides/partials`: Overrides and extensions for sub components. | ||
|
||
[^1]: A section or category can be replaced by an `index.md` file, this will replace the default nav with a page. | ||
|
||
## Developer Documentation | ||
|
||
Following pages contain information to help maintain the documentation: | ||
|
||
- See [contributing](https://nesi.github.io/support-docs/CONTRIBUTING) ([local version](docs/CONTRIBUTING.md)), to learn how to you can contribute. | ||
- See [formatting](https://nesi.github.io/support-docs/FORMAT), for examples of markdown syntax. | ||
- See [create a new page](https://nesi.github.io/support-docs/NEWPAGE), for general principles to consider when writing pages. | ||
- See [macros](https://nesi.github.io/support-docs/MACROS), for `mkdocs-macros-plugin` environment. | ||
- See [checks](checks/README.md), for information on quality assurance tests. | ||
- See [workflows](.github/workflows/README.md), for information on CI workflows. | ||
|
||
## Viewing PR Branches | ||
|
||
![Demo Site](https://github.com/CallumWalley/support-docs-dev/actions/workflows/deploy.yml/badge.svg) | ||
|
||
Deployments of open pull requests can be viewed at [https://callumwalley.github.io/support-docs-dev/NAME-OF-BRANCH](https://callumwalley.github.io/support-docs-dev/) | ||
|
||
## Theme | ||
|
||
We are using the [mkdocs material theme](https://squidfunk.github.io/mkdocs-material/). | ||
|
||
## Analyics | ||
|
||
The site uses [Google analytics](https://analytics.google.com/analytics/web/#/p424742084). You will need to ask a google workspace admin to add you to the project. | ||
|
||
## Migration | ||
|
||
Migration of the Zendesk documentation is done using our [migration pipeline (NeSI internal GitLab](https://git.hpcf.nesi.org.nz/cwal219/migratedocs). | ||
|
||
Any one off filters (e.g. don't need to be checked every time, just when converting from ZD) should go there. |
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 was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.