Merge branch 'main' into main-v5
This commit is contained in:
commit
149dfdb9ab
47
.drone.yml
47
.drone.yml
@ -73,6 +73,7 @@ steps:
|
|||||||
- tag
|
- tag
|
||||||
ref:
|
ref:
|
||||||
include:
|
include:
|
||||||
|
# include only pre-release tags
|
||||||
- "refs/tags/*rc*"
|
- "refs/tags/*rc*"
|
||||||
- "refs/tags/*beta*"
|
- "refs/tags/*beta*"
|
||||||
- "refs/tags/*alpha*"
|
- "refs/tags/*alpha*"
|
||||||
@ -97,6 +98,7 @@ steps:
|
|||||||
- tag
|
- tag
|
||||||
ref:
|
ref:
|
||||||
exclude:
|
exclude:
|
||||||
|
# exclude pre-release tags
|
||||||
- "refs/tags/*rc*"
|
- "refs/tags/*rc*"
|
||||||
- "refs/tags/*beta*"
|
- "refs/tags/*beta*"
|
||||||
- "refs/tags/*alpha*"
|
- "refs/tags/*alpha*"
|
||||||
@ -116,51 +118,6 @@ volumes:
|
|||||||
- name: dockersock
|
- name: dockersock
|
||||||
temp: {}
|
temp: {}
|
||||||
|
|
||||||
---
|
|
||||||
#########################
|
|
||||||
##### Documentation #####
|
|
||||||
#########################
|
|
||||||
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: docs
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: build
|
|
||||||
image: python:3.9
|
|
||||||
commands:
|
|
||||||
- python3 -m pip install -r docs/requirements.txt
|
|
||||||
- mkdocs build --verbose --clean --strict
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
- name: publish
|
|
||||||
image: plugins/gh-pages
|
|
||||||
settings:
|
|
||||||
password:
|
|
||||||
from_secret: github_token
|
|
||||||
username: rancherio-gh-m
|
|
||||||
pages_directory: site/
|
|
||||||
target_branch: gh-pages
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
|
|
||||||
---
|
---
|
||||||
###########################
|
###########################
|
||||||
|
46
.github/workflows/docs.yml
vendored
Normal file
46
.github/workflows/docs.yml
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
name: k3d.io
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
tags:
|
||||||
|
# only run on tags for real releases and special docs releases
|
||||||
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'v[0-9]+.[0-9]+.[0-9]+-docs.[0-9]+'
|
||||||
|
# tags-ignore:
|
||||||
|
# - "*rc*"
|
||||||
|
# - "*beta*"
|
||||||
|
# - "*alpha*"
|
||||||
|
# - "*test*"
|
||||||
|
# - "*dev*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
container:
|
||||||
|
image: python:3.9
|
||||||
|
steps:
|
||||||
|
- name: Checkout Project
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Install Requirements
|
||||||
|
run: pip install -r docs/requirements.txt
|
||||||
|
- name: Build with MkDocs (validation)
|
||||||
|
run: |
|
||||||
|
mkdocs build --verbose --clean --strict
|
||||||
|
rm -r site/
|
||||||
|
- name: Configure Git
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
id: git
|
||||||
|
run: |
|
||||||
|
git config --global user.name ghaction-k3d.io
|
||||||
|
git config --global user.email ghaction@k3d.io
|
||||||
|
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
|
||||||
|
- name: Build & Deploy with Mike (versioned)
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
run: |
|
||||||
|
mike deploy --update-aliases --push --rebase ${{ steps.git.outputs.tag }} stable
|
||||||
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
|||||||
mkdocs
|
mkdocs==1.2.2
|
||||||
mkdocs-material
|
mkdocs-material==7.2.6
|
||||||
pymdown-extensions
|
pymdown-extensions==8.2
|
||||||
mkdocs-git-revision-date-localized-plugin
|
mkdocs-git-revision-date-localized-plugin==0.9.3
|
||||||
mkdocs-awesome-pages-plugin
|
mkdocs-awesome-pages-plugin==2.5.0
|
||||||
mdx_truly_sane_lists
|
mdx_truly_sane_lists==1.2 # https://github.com/radude/mdx_truly_sane_lists
|
||||||
mkdocs-include-markdown-plugin # https://github.com/mondeja/mkdocs-include-markdown-plugin
|
mkdocs-include-markdown-plugin==3.2.2 # https://github.com/mondeja/mkdocs-include-markdown-plugin
|
||||||
|
mike==1.1.0 # versioned docs: https://github.com/jimporter/mike
|
||||||
|
17
mkdocs.yml
17
mkdocs.yml
@ -25,7 +25,10 @@ theme:
|
|||||||
name: material
|
name: material
|
||||||
language: en
|
language: en
|
||||||
features:
|
features:
|
||||||
- tabs
|
- navigation.top # show back to top button
|
||||||
|
- search.suggest # search suggestions: https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-search/#search-suggestions
|
||||||
|
- search.highlight # highlight search term on target page: https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-search/#search-suggestions
|
||||||
|
|
||||||
palette:
|
palette:
|
||||||
- media: "(prefers-color-scheme: light)"
|
- media: "(prefers-color-scheme: light)"
|
||||||
scheme: default
|
scheme: default
|
||||||
@ -71,6 +74,16 @@ plugins:
|
|||||||
type: date
|
type: date
|
||||||
- awesome-pages # https://squidfunk.github.io/mkdocs-material/plugins/awesome-pages/
|
- awesome-pages # https://squidfunk.github.io/mkdocs-material/plugins/awesome-pages/
|
||||||
- include-markdown # https://github.com/mondeja/mkdocs-include-markdown-plugin
|
- include-markdown # https://github.com/mondeja/mkdocs-include-markdown-plugin
|
||||||
|
- mike: # Versioned Docs: https://github.com/jimporter/mike
|
||||||
|
version_selector: true # set to false to leave out the version selector
|
||||||
|
css_dir: static/css # the directory to put the version selector's CSS
|
||||||
|
javascript_dir: static/js # the directory to put the version selector's JS
|
||||||
|
canonical_version: null # the version for <link rel="canonical">; `null` uses the version specified via `mike deploy`
|
||||||
|
|
||||||
|
# Extra mkdocs-material settings
|
||||||
|
extra:
|
||||||
|
version:
|
||||||
|
provider: mike
|
||||||
|
|
||||||
# Other Settings
|
# Other Settings
|
||||||
strict: true # halt processing when a warning is raised
|
strict: true # halt processing when a warning is raised
|
||||||
|
Loading…
Reference in New Issue
Block a user