Skip to content

Commit 5909efd

Browse files
πŸŽ‰ Separate docs repo from lapidary.
1 parent 9bb4a9d commit 5909efd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1156
-2430
lines changed

β€Ž.github/dependabot.yml

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
version: 2
22
updates:
3-
- package-ecosystem: pip
4-
directory: /
5-
schedule:
6-
interval: monthly
73
- package-ecosystem: github-actions
84
directory: /
95
schedule:

β€Ž.github/workflows/mkdocs.yaml

+34-6
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,61 @@
11
name: Deploy MkDocs to GitHub Pages
22

33
on:
4+
schedule:
5+
- cron: 0 3 * * *
46
push:
57
branches:
6-
- develop # Set this to your default branch
8+
- develop
9+
workflow_dispatch:
710

811
jobs:
912
deploy:
1013
runs-on: ubuntu-latest
1114

1215
steps:
13-
- name: Checkout
16+
- name: Checkout docs
1417
uses: actions/checkout@v4
1518

19+
- name: Checkout lapidary
20+
uses: actions/checkout@v4
21+
with:
22+
repository: python-lapidary/lapidary
23+
ref: develop
24+
path: docs/lapidary
25+
26+
- name: Checkout lapidary-render
27+
uses: actions/checkout@v4
28+
with:
29+
repository: python-lapidary/lapidary-render
30+
ref: develop
31+
path: docs/lapidary-render
32+
1633
- name: Setup Python
1734
uses: actions/setup-python@v5
1835
with:
19-
python-version: '3.x' # Set this to the Python version you're using
36+
python-version: '3.x'
37+
38+
- name: Cache Poetry dependencies
39+
uses: actions/cache@v4
40+
with:
41+
path: |
42+
~/.cache/pypoetry
43+
~/.cache/pip
44+
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
45+
restore-keys: |
46+
${{ runner.os }}-poetry-
2047
2148
- name: Install dependencies
2249
run: |
23-
pip install mkdocs-material 'mkdocstrings[python]'
50+
pip install poetry
51+
poetry install --no-root
2452
2553
- name: Build site
26-
run: mkdocs build -f config/mkdocs.yml
54+
run: poetry run mkdocs build
2755

2856
- name: Deploy to GitHub Pages
2957
uses: peaceiris/actions-gh-pages@v4
3058
with:
3159
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
publish_dir: ./site # Set this to your 'site_dir' if you have a custom build directory
60+
publish_dir: ./site
3361
cname: lapidary.dev

β€Ž.github/workflows/test.yaml

-153
This file was deleted.

β€Ž.gitignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
__pycache__
2-
/dist/
3-
/.pytest_cache/
1+
/site/

β€Ž.pre-commit-config.yaml

-17
This file was deleted.

0 commit comments

Comments
Β (0)