Skip to content

Commit 23527fc

Browse files
committed
update
Signed-off-by: George Lemon <georgelemon@protonmail.com>
1 parent 8405bb9 commit 23527fc

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,14 @@ jobs:
1818
with:
1919
nim-version: ${{ env.nim-version }}
2020
- run: nimble install -Y
21-
- run: nim doc --index:on --project --path:. --out:${{ env.deploy-dir }} ${{ env.nim-src }}
21+
- run: nim doc -d:builddocs --index:on --project --path:. --out:${{ env.deploy-dir }} ${{ env.nim-src }}
2222

2323
- name: "Rename to index.html"
2424
run: mv ${{ env.deploy-dir }}/${{ github.event.repository.name }}.html ${{ env.deploy-dir }}/index.html
2525

2626
- name: "Find and replace (index.html)"
2727
run: sed -i 's/${{ github.event.repository.name }}.html/index.html/g' ${{ env.deploy-dir }}/index.html
28-
29-
# - name: "Find and replace (idx)"
30-
# run: sed -i 's/${{ github.event.repository.name }}.html/index.html/g' ${{ env.deploy-dir }}/${{ github.event.repository.name }}.idx
31-
28+
3229
- name: "Find and replace (theindex.html)"
3330
run: sed -i 's/${{ github.event.repository.name }}.html/index.html/g' ${{ env.deploy-dir }}/theindex.html
3431

src/openparser.nim

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@
44
# Made by Humans from OpenPeeps
55
# https://github.com/openpeeps/voodoo
66

7-
{.error:"Import the specific parser you need".}
7+
when not defined(builddocs):
8+
{.error:"Import the specific parser you need".}
9+
else:
10+
# For documentation purposes, we re-export all parsers here
11+
import ./openparser/[json, csv, rss, feed]
12+
export json, csv, rss, feed

0 commit comments

Comments
 (0)