Skip to content

Commit

Permalink
move mkdocs stuff into docs dir
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Aug 18, 2023
1 parent 7edde94 commit 30c58de
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/docs-pr.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: docs
name: Docs PR

on:
pull_request:
branches: [ '**' ]
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'requirements.txt'

concurrency:
group: pages
Expand All @@ -32,6 +30,7 @@ jobs:
path: .cache
restore-keys: |
mkdocs-material-
- run: cd docs
- run: pip install -r requirements.txt
- run: mkdocs build --verbose --strict
- uses: actions/upload-pages-artifact@v1
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: docs
name: Docs Push

on:
push:
branches: [ '**' ]
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
- 'mkdocs.yml'
- 'requirements.txt'

concurrency:
group: pages
Expand All @@ -33,6 +31,7 @@ jobs:
path: .cache
restore-keys: |
mkdocs-material-
- run: cd docs
- run: pip install -r requirements.txt
- run: mkdocs build --verbose --strict
- uses: actions/upload-pages-artifact@v1
Expand Down
9 changes: 6 additions & 3 deletions mkdocs.yml → docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ site_name: Lavalink Docs
site_description: Lavalink Documentation
site_author: Lavalink Contributors
site_url: https://lavalink.dev
site_dir: ../site
docs_dir: .

repo_name: Lavalink
repo_url: https://github.com/lavalink-devs/Lavalink
Expand Down Expand Up @@ -42,7 +44,7 @@ extra:

theme:
name: material
custom_dir: docs/overrides
custom_dir: overrides
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
Expand Down Expand Up @@ -102,11 +104,12 @@ markdown_extensions:
- neoteroi.cards:

plugins:
- offline:
- offline
- search:
lang: en
- same-dir
- social:
cards_layout_options:
background_color: "#ff624a"
color: "#FFFFFF"
- git-revision-date-localized:
- git-revision-date-localized
3 changes: 2 additions & 1 deletion requirements.txt → docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ mkdocs-material-extensions
mkdocs-git-revision-date-localized-plugin
pillow
cairosvg
neoteroi-mkdocs
neoteroi-mkdocs
mkdocs-same-dir

0 comments on commit 30c58de

Please sign in to comment.