-
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.
Merge pull request #3 from violinminds/pr-mkdocs-ghpages
MkDocs integration with GitHub Pages
- Loading branch information
Showing
10 changed files
with
116 additions
and
17 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,24 @@ | ||
--- | ||
name: main | ||
|
||
on: | ||
push: # All branches and tags | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
job: | ||
permissions: { id-token: write, pages: write } | ||
uses: dmotte/misc/.github/workflows/cicd-with-script.yml@main | ||
with: | ||
# These would be overkill here | ||
run-shellcheck: false | ||
run-trivy: false | ||
|
||
script: > | ||
MKDOCS_DEPS=mkdocs-material,mkdocs-minify-plugin,pymdown-extensions | ||
MKDOCS_DOCS_SRC=. MKDOCS_DOCS_DST=mkdocs-docs | ||
MKDOCS_DOCS_EXCLUDES=.git,venv,mkdocs-docs,mkdocs-site | ||
MKDOCS_SITE_DIR=mkdocs-site | ||
bash "$(realpath "$GITHUB_ACTION_PATH/../../scripts/cicd/mkdocs-ghpages.sh")" |
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 @@ | ||
/venv/ | ||
/mkdocs-docs/ | ||
/mkdocs-site/ |
This file was deleted.
Oops, something went wrong.
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,73 @@ | ||
--- | ||
strict: true | ||
docs_dir: !ENV MKDOCS_DOCS_DST | ||
site_dir: !ENV MKDOCS_SITE_DIR | ||
|
||
# Inspired by https://github.com/dmotte/misc/blob/main/mkdocs.yml | ||
|
||
site_name: KnowledgeBass | ||
site_url: https://violinminds.github.io/knowledgebass/ | ||
site_author: violinminds | ||
site_description: Errare humanvm est, perseverare is like breadcrumbs on top of pasta. | ||
|
||
repo_name: violinminds/knowledgebass | ||
repo_url: https://github.com/violinminds/knowledgebass | ||
edit_uri: blob/main | ||
|
||
theme: | ||
name: material | ||
features: | ||
- content.action.edit | ||
- content.action.view | ||
- content.code.copy | ||
- content.tooltips | ||
- navigation.tabs | ||
- navigation.indexes # Provides same behavior as the "mkdocs-section-index" plugin | ||
- navigation.expand | ||
- navigation.footer | ||
- navigation.top | ||
- search.share | ||
- search.suggest | ||
- search.highlight | ||
palette: | ||
- media: "(prefers-color-scheme)" | ||
toggle: | ||
icon: material/link | ||
name: Switch to light mode | ||
- media: "(prefers-color-scheme: light)" | ||
scheme: default | ||
primary: indigo | ||
accent: indigo | ||
toggle: | ||
icon: material/toggle-switch | ||
name: Switch to dark mode | ||
- media: "(prefers-color-scheme: dark)" | ||
scheme: slate | ||
primary: black | ||
accent: indigo | ||
toggle: | ||
icon: material/toggle-switch-off | ||
name: Switch to system preference | ||
# favicon: null | ||
icon: { logo: material/music-clef-bass } | ||
|
||
plugins: | ||
- minify: { minify_html: true } | ||
- search | ||
|
||
extra: | ||
social: | ||
- icon: fontawesome/brands/github | ||
link: https://github.com/violinminds | ||
|
||
markdown_extensions: | ||
- pymdownx.magiclink | ||
- pymdownx.emoji: | ||
emoji_index: !!python/name:material.extensions.emoji.twemoji | ||
emoji_generator: !!python/name:material.extensions.emoji.to_svg | ||
- pymdownx.highlight: | ||
auto_title: true | ||
auto_title_map: { Text Only: "" } | ||
linenums: true | ||
anchor_linenums: true | ||
- pymdownx.superfences |
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 |
---|---|---|
|
@@ -219,6 +219,7 @@ Banner c:\banner_to_show_when_sshing_-T.txt | |
- if you get the warning "@ WARNING: UNPROTECTED PRIVATE KEY FILE! @" when trying to use the keys, fix the private key(s) file(s) permissions to allow FULL CONTROL to the current user, `SYSTEM` and the `Administrators` group | ||
- if a repository was already cloned via HTTPS and you want to start working via SSH, change its remote via: `git remote set-url origin [email protected]:violinminds/knowledgebass.git`. To verify the current remotes, run: `git remote -v` | ||
- if you get an error, eg. "Permission denied (publickey). fatal: Could not read from remote repository.", to debug, you can add the `-v` switch to `core.sshCommand` setting in the git config to be more verbose (use `-vvv` to be even more verbose) | ||
|
||
- a possible problem might be that, for some reason, ssh is not using the agent's keys. In the verbose debug log, ssh reports a list of the keys it tries to use when connecting to an ssh host, which should also include the agent's keys. If the agent keys are missing, see the following Troubleshooting tips. Example of correct debug log: | ||
|
||
```ini | ||
|
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,5 +1,5 @@ | ||
# Remote Desktop Connection on Windows | ||
> | ||
|
||
> tags: mstsc, rdp | ||
## Basic setup | ||
|
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