Skip to content

Commit

Permalink
docs: improve doc gen (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
j4qfrost committed Jan 22, 2023
1 parent fada64f commit 8d18f87
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ scripts:
run: melos exec -- "rm -rf '\$MELOS_PACKAGE_PATH/.dart_tool' '\$MELOS_PACKAGE_PATH/pubspec.lock'"
gen-docs:
run: |
yq -i 'with(.nav[] | select(has("API")); . = {"API": []})' $MELOS_ROOT_PATH/mkdocs.yml && melos exec --ignore "*common*" -- "dart doc && CONF=\$(echo \$MELOS_PACKAGE_PATH/mkdocs.yml | sed -e 's#^$MELOS_ROOT_PATH#!include .#') yq -i 'with(.nav[] | select(has(\"API\")); .[] += {\"\$MELOS_PACKAGE_NAME\" : strenv(CONF)})' $MELOS_ROOT_PATH/mkdocs.yml"
melos exec --ignore "*common*" --ignore "fs_test_agent" -- "dart doc"
select-pacakge:
no-private: true
fix:
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ nav:
- Getting Started: 'getting_started.md'
- Core Concepts: 'core_concepts.md'
- Tour: 'tour.md'
- API: []
- API: '*include ./packages/*/mkdocs.yml'
- Best Practices: 'best_practices.md'
- IntelliJ IDEA Templates: 'intellij.md'
- Tutorial:
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ site_name: conduit
docs_dir: doc/api

nav:
- API: "index.html"
- Docs: "index.html"
2 changes: 1 addition & 1 deletion packages/codable/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ site_name: conduit_codable
docs_dir: doc/api

nav:
- API: "index.html"
- Docs: "index.html"
2 changes: 1 addition & 1 deletion packages/config/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
site_name: conduit_config
docs_dir: doc/api
nav:
- API: "index.html"
- Docs: "index.html"
2 changes: 1 addition & 1 deletion packages/core/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ site_name: conduit_core
docs_dir: doc/api

nav:
- API: "index.html"
- Docs: "index.html"
4 changes: 0 additions & 4 deletions packages/fs_test_agent/mkdocs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/isolate_exec/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ site_name: conduit_isolate_exec
docs_dir: doc/api

nav:
- API: "index.html"
- Docs: "index.html"
2 changes: 1 addition & 1 deletion packages/open_api/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ site_name: conduit_open_api
docs_dir: doc/api

nav:
- API: "index.html"
- Docs: "index.html"
2 changes: 1 addition & 1 deletion packages/password_hash/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ site_name: conduit_password_hash
docs_dir: doc/api

nav:
- API: "index.html"
- Docs: "index.html"
2 changes: 1 addition & 1 deletion packages/runtime/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ site_name: conduit_runtime
docs_dir: doc/api

nav:
- API: "index.html"
- Docs: "index.html"
2 changes: 1 addition & 1 deletion packages/test_harness/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ site_name: conduit_test
docs_dir: doc/api

nav:
- API: "index.html"
- Docs: "index.html"

0 comments on commit 8d18f87

Please sign in to comment.