Skip to content

Commit

Permalink
try to fix doc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Isrothy committed Jul 12, 2024
1 parent 70b7bcd commit 4b40959
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,27 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Lua
uses: leafo/gh-actions-lua@v8
with:
luaVersion: 5.4

- name: Setup Lua Rocks
uses: leafo/gh-actions-luarocks@v4
- name: Setup dependencies
run: luarocks install --only-deps ldoc-dev-1.rockspec
run: sudo apt-get install -y luarocks

- name: Install LDoc
run: luarocks install ldoc

- name: Build docs
run: make doc-site
run: |
mkdir -p doc
ldoc . --ext readme.md
mv ./doc/*.txt ./doc/neominimap.txt
- name: Deploy
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.PAT_TOKEN }}
publish_dir: ./doc
17 changes: 17 additions & 0 deletions config.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
project = "Neominimap"
title = "Neominimap Documentation"
description = "A Neovim plugin providing a visual representation of your code structure."
format = "markdown"
backtick_references = false
file = "neominimap.lua"
dir = "docs"
readme = "README.md"
style = "!new"
kind_names = {
topic = "Guide",
script = "Scripts",
module = "Modules",
class = "Classes",
}
examples = {
}

0 comments on commit 4b40959

Please sign in to comment.