Skip to content

Commit 72f9ac2

Browse files
committed
Small Docs test
1 parent 7c5d735 commit 72f9ac2

25 files changed

+891
-796
lines changed

.github/workflows/main.yml

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -14,69 +14,69 @@ jobs:
1414
contents: write
1515

1616
steps:
17-
- name: Checkout repository
18-
uses: actions/checkout@v3
19-
with:
20-
fetch-depth: 0
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
2121

22-
- name: Setup Lua
23-
uses: leafo/gh-actions-lua@v8
24-
with:
25-
luaVersion: "5.4"
22+
- name: Setup Lua
23+
uses: leafo/gh-actions-lua@v8
24+
with:
25+
luaVersion: "5.4"
2626

27-
# Step 1: Config Generation
28-
- name: Generate Config
29-
run: |
30-
lua tools/generate-config.lua
27+
# Step 1: Config Generation
28+
- name: Generate Config
29+
run: |
30+
lua tools/generate-config.lua
3131
32-
# Step 2: Generate LuaLS Definitions
33-
- name: Generate LuaLS
34-
run: |
35-
lua tools/generate-annotations.lua src
32+
# Step 2: Generate LuaLS Definitions
33+
- name: Generate LuaLS
34+
run: |
35+
lua tools/generate-annotations.lua src
3636
37-
# Step 3: Bundle and Minify
38-
- name: Bundle and Minify
39-
run: |
40-
mkdir -p release
41-
lua tools/bundler.lua
37+
# Step 3: Bundle and Minify
38+
- name: Bundle and Minify
39+
run: |
40+
mkdir -p release
41+
lua tools/bundler.lua
4242
43-
# Step 4: Prepare and Generate Documentation
44-
- name: Prepare docs directory
45-
run: |
46-
# Checkout gh-pages branch in a separate directory
47-
git worktree add gh-pages gh-pages
48-
49-
# Only clean references directory
50-
rm -rf gh-pages/docs/references
51-
mkdir -p gh-pages/docs/references
43+
# Step 4: Prepare and Generate Documentation
44+
- name: Prepare docs directory
45+
run: |
46+
# Checkout gh-pages branch in a separate directory
47+
git worktree add gh-pages gh-pages
48+
49+
# Only clean references directory
50+
rm -rf gh-pages/docs/references
51+
mkdir -p gh-pages/docs/references
5252
53-
#- name: Generate Documentation
54-
# run: |
55-
# lua tools/generate-docs.lua
53+
- name: Generate Documentation
54+
run: |
55+
lua tools/generate-docs.lua
5656
57-
# cp -r build_docs/docs/references/* gh-pages/docs/references/
57+
cp -r build_docs/docs/references/* gh-pages/docs/references/
5858
59-
# Step 5: Deploy Documentation
60-
- name: Deploy Documentation
61-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
62-
uses: peaceiris/actions-gh-pages@v3
63-
with:
64-
github_token: ${{ secrets.GITHUB_TOKEN }}
65-
publish_dir: ./gh-pages
66-
keep_files: true
59+
# Step 5: Deploy Documentation
60+
- name: Deploy Documentation
61+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
62+
uses: peaceiris/actions-gh-pages@v3
63+
with:
64+
github_token: ${{ secrets.GITHUB_TOKEN }}
65+
publish_dir: ./gh-pages
66+
keep_files: true
6767

68-
# Step 6: Generate Changelog
69-
#- name: Generate Changelog
70-
# id: changelog
71-
# uses: heinrichreimer/[email protected]
72-
# with:
73-
# token: ${{ secrets.GITHUB_TOKEN }}
68+
# Step 6: Generate Changelog
69+
#- name: Generate Changelog
70+
# id: changelog
71+
# uses: heinrichreimer/[email protected]
72+
# with:
73+
# token: ${{ secrets.GITHUB_TOKEN }}
7474

75-
# Step 7: Commit all changes
76-
- name: Commit Changes
77-
run: |
78-
git config --global user.name 'github-actions[bot]'
79-
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
80-
git add config.lua BasaltLS.lua release/basalt.lua CHANGELOG.md
81-
git commit -m "Update config, BasaltLS definitions, bundle and changelog" || exit 0
82-
git push
75+
# Step 7: Commit all changes
76+
- name: Commit Changes
77+
run: |
78+
git config --global user.name 'github-actions[bot]'
79+
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
80+
git add config.lua BasaltLS.lua release/basalt.lua CHANGELOG.md
81+
git commit -m "Update config, BasaltLS definitions, bundle and changelog" || exit 0
82+
git push

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@ testWorkflows
88
.vscode
99
todo.txt
1010
Flexbox2.lua
11-
markdown2.lua
12-
BasaltDoc
13-
generate-docs.lua
14-
io.lua
11+
markdown.lua
12+
markdown2.lua

tools/BasaltDoc/Button.lua

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)