Skip to content

Commit 8ed4671

Browse files
committed
Fixed type in readme and added auto generation of apiv2 docs
1 parent ca1ad75 commit 8ed4671

File tree

3 files changed

+30504
-2
lines changed

3 files changed

+30504
-2
lines changed

.github/workflows/docs.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,18 @@ jobs:
2222
pip3 install $(mkdocs get-deps)
2323
sudo apt-get update
2424
sudo apt-get install -y lftp
25-
25+
sudo apt-get install nodejs
26+
sudo apt-get install npm
27+
sudo npm i openapi-to-md -g
28+
- name: Start application containers #same steps as in ci.yml, might make it more modular in the future
29+
working-directory: .devcontainer
30+
run: docker compose up -d
31+
- name: Wait until entrypoint is finished and Hashtopolis is started
32+
run: bash .github/scripts/await-hashtopolis-startup.sh
33+
- name: Download newest apiv2 spec
34+
run: |
35+
wget http://localhost:8080/api/v2/openapi.json -P /tmp/
36+
openapi-to-md /tmp/openapi.json /docs/api/
2637
- name: Build MkDocs site
2738
run: |
2839
mkdocs build

doc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ virtualenv venv
1616
source venv/bin/activate
1717
pip3 install mkdocs
1818
pip3 install $(mkdocs get-deps)
19-
mkdocs server
19+
mkdocs serve
2020
```

0 commit comments

Comments
 (0)