Skip to content

Commit

Permalink
made it easier to do different before files with Uptodocs
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasverraes committed Nov 30, 2020
1 parent 94dbd31 commit 6dcaf96
Showing 1 changed file with 19 additions and 28 deletions.
47 changes: 19 additions & 28 deletions docs/testdocs
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,23 @@

# Execute the docs to make sure all code examples are in sync with the Parsica code.

hasFailed=0


files=(
"README.md"
"docs/contribute/design_goals.md"
"docs/resources/01_development_status.md"
"docs/resources/02_performance.md"
"docs/resources/03_naming_conventions.md"
"docs/tutorial/01_introduction.md"
"docs/tutorial/02_building_blocks.md"
"docs/tutorial/03_combinators.md"
"docs/tutorial/04_running_parsers.md"
"docs/tutorial/05_mapping_to_objects.md"
"docs/tutorial/06_order_matters.md"
"docs/tutorial/07_recursion.md"
"docs/tutorial/08_look_ahead.md"
"docs/tutorial/09_errors_and_labels.md"
"docs/tutorial/10_side_effects.md"
"docs/tutorial/90_functional_paradigms.md"
)

for file in "${files[@]}"
do
vendor/bin/uptodocs run $file --before=docs/before.php --output-format=github || hasFailed=1
done

exit $hasFailed
set -e
vendor/bin/uptodocs run README.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/contribute/design_goals.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/resources/01_development_status.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/resources/02_performance.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/resources/03_naming_conventions.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/01_introduction.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/02_building_blocks.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/03_combinators.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/04_running_parsers.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/05_mapping_to_objects.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/06_order_matters.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/07_recursion.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/08_look_ahead.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/09_errors_and_labels.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/10_side_effects.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/11_dealing_with_space.md --before=docs/before.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/20_expressions.md --before=docs/expressions.php --output-format=github
vendor/bin/uptodocs run docs/tutorial/90_functional_paradigms.md --before=docs/before.php --output-format=github

0 comments on commit 6dcaf96

Please sign in to comment.