Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Rust

on:
push:
branches:
- docs-v2
tags:
- "*"

jobs:
build_docs:
name: Build docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install requirements
run: |
python -m pip install --upgrade pip
python -m pip install -r docs/v2/requirements.txt
- name: Build docs
run: |
cd docs/v2
make html-all
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: html_output
path: docs/v2/build/html
include-hidden-files: true

publish_docs:
name: Publish docs to GitHub Pages
needs:
- build_docs
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: html_output
path: docs/v2/build/html
- name: Publish HTML
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/v2/build/html
target-folder: .
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
emmylua-docs
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"files.trimTrailingWhitespaceInRegexAndStrings": true
"files.trimTrailingWhitespaceInRegexAndStrings": true,
"python-envs.defaultEnvManager": "ms-python.python:system",
"python-envs.pythonProjects": []
}
Loading
Loading