Skip to content

Commit

Permalink
Update Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vicvalentim committed Oct 30, 2024
1 parent 818f9ee commit 7ddbbe2
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 294 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy_website.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
name: deploy_website
name: Deploy Website

on:
push:
branches:
- main

permissions:
contents: write

jobs:
deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
python-version: '3.x'

- name: Install dependencies
run: pip install mkdocs-material
run: |
pip install mkdocs-dracula mkdocs-static-i18n mkdocs-material
- name: Build website
run: mkdocs build
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/pr_preview.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Deploy PR preview
name: Deploy PR Preview

on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed

permissions:
contents: write
pull-requests: write
Expand All @@ -14,25 +16,38 @@ jobs:
deploy-preview:
concurrency: preview-${{ github.ref }}
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
python-version: '3.x'

- name: Install dependencies
run: pip install mkdocs-material
run: |
pip install mkdocs-dracula mkdocs-static-i18n mkdocs-material
- name: Build website
if: github.event.action != 'closed'
run: mkdocs build

- name: Deploy preview
if: github.event.action != 'closed'
uses: rossjrw/pr-preview-action@v1
with:
source-dir: site
preview-branch: gh-pages
umbrella-dir: pr-preview

- name: Remove preview on PR close
if: github.event.action == 'closed'
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git checkout gh-pages
git rm -rf pr-preview/${{ github.event.pull_request.number }}
git commit -m "Remove preview for PR #${{ github.event.pull_request.number }}"
git push origin gh-pages
128 changes: 0 additions & 128 deletions docs/develop.md

This file was deleted.

Binary file removed docs/example_sketch_output.jpg
Binary file not shown.
46 changes: 0 additions & 46 deletions docs/getting-started.md

This file was deleted.

38 changes: 0 additions & 38 deletions docs/index.md

This file was deleted.

Loading

0 comments on commit 7ddbbe2

Please sign in to comment.