Skip to content

Commit

Permalink
Avoid using PyYAML in gen_mkdocs_pages script
Browse files Browse the repository at this point in the history
  • Loading branch information
devplayer0 committed Oct 22, 2020
1 parent a98eb47 commit 9755c16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
mkdir -p docs/reference/
bin/github.com/netsoc/cli-linux-amd64 docs -t markdown -o docs/reference/
pip3 install pyyaml
./gen_mkdocs_pages.py docs/reference/ > docs/reference/.pages
- name: Commit reference docs
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Netsoc CLI
4 changes: 2 additions & 2 deletions gen_mkdocs_pages.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
import yaml
import json

if len(sys.argv) != 2:
print(f'usage: {sys.argv[0]} <path to generated reference docs>', file=sys.stderr)
Expand All @@ -18,4 +18,4 @@

nav = list(sorted(nav, key=lambda i: next(iter(i))))

yaml.dump({'nav': nav}, sys.stdout, indent=2)
json.dump({'nav': nav}, sys.stdout, indent=2)

0 comments on commit 9755c16

Please sign in to comment.