Skip to content

Commit

Permalink
Move README template into .github/.
Browse files Browse the repository at this point in the history
  • Loading branch information
realazthat committed Aug 7, 2024
1 parent 8a228c8 commit 6ffb9ab
Show file tree
Hide file tree
Showing 8 changed files with 206 additions and 10 deletions.
196 changes: 196 additions & 0 deletions .github/README.help.generated.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
6 changes: 3 additions & 3 deletions .github/README.remotified.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
WARNING: This file is auto-generated by snipinator. Do not edit directly.
SOURCE: `README.md.jinja2`.
SOURCE: `.github/README.md.jinja2`.
-->
<!--
Expand Down Expand Up @@ -181,13 +181,13 @@ $ python -m mdreftidy.cli ./mdreftidy/examples/SIMPLE.md --move-to-bottom --remo
All together now:

<!---->
<img alt="Output of `bash ./snipinator/examples/simple_example.sh`" src="https://raw.githubusercontent.com/realazthat/mdreftidy/v0.6.0/README.simple-output.generated.svg"/>
<img alt="Output of `bash ./snipinator/examples/simple_example.sh`" src="https://raw.githubusercontent.com/realazthat/mdreftidy/v0.6.0/.github/README.simple-output.generated.svg"/>
<!-- -->

## 💻 Command Line Options

<!---->
<img alt="Output of `python -m mdreftidy.cli --help`" src="https://raw.githubusercontent.com/realazthat/mdreftidy/v0.6.0/README.help.generated.svg"/>
<img alt="Output of `python -m mdreftidy.cli --help`" src="https://raw.githubusercontent.com/realazthat/mdreftidy/v0.6.0/.github/README.help.generated.svg"/>
<!-- -->

## 💡 Examples
Expand Down
File renamed without changes
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
WARNING: This file is auto-generated by snipinator. Do not edit directly.
SOURCE: `README.md.jinja2`.
SOURCE: `.github/README.md.jinja2`.
-->
<!--
Expand Down Expand Up @@ -181,13 +181,13 @@ $ python -m mdreftidy.cli ./mdreftidy/examples/SIMPLE.md --move-to-bottom --remo
All together now:

<!---->
<img src="README.simple-output.generated.svg" alt="Output of `bash ./snipinator/examples/simple_example.sh`" />
<img src=".github/README.simple-output.generated.svg" alt="Output of `bash ./snipinator/examples/simple_example.sh`" />
<!---->

## 💻 Command Line Options

<!---->
<img src="README.help.generated.svg" alt="Output of `python -m mdreftidy.cli --help`" />
<img src=".github/README.help.generated.svg" alt="Output of `python -m mdreftidy.cli --help`" />
<!---->

## 💡 Examples
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ dev = [
"rich-argparse==1.4.0",
"secretstorage==3.3.3",
"semver==3.0.2",
"snipinator==2.2.0",
"snipinator==3.1.1",
"soupsieve==2.5",
"toml-sort==0.23.1",
"tomli==2.0.1",
Expand Down
4 changes: 2 additions & 2 deletions scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ find ./mdreftidy/examples -type f -name "*.md" ! -path '*.tidied.md' -print0 | w
bash scripts/utilities/prettier.sh --parser markdown "${MARKDOWN_TEMPLATE}" --write
done

python -m mdreftidy.cli "${PWD}/README.md.jinja2" \
python -m mdreftidy.cli "${PWD}/.github/README.md.jinja2" \
--renumber --remove-unused --move-to-bottom --sort-ref-blocks --inplace
bash scripts/utilities/prettier.sh --parser markdown "${PWD}/README.md.jinja2" --write
bash scripts/utilities/prettier.sh --parser markdown "${PWD}/.github/README.md.jinja2" --write
bash scripts/utilities/prettier.sh --parser markdown "${PWD}/LICENSE.md" --write

python -m yapf -r ./mdreftidy -i
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ echo "${TMP_DIR}/simple_example.output" \
> "${TMP_DIR}/snipinator-args.json"

python -m snipinator.cli \
-t "${PROJ_PATH}/README.md.jinja2" \
-t "${PROJ_PATH}/.github/README.md.jinja2" \
--args "$(cat "${TMP_DIR}/snipinator-args.json")" \
--rm \
--force \
Expand Down

0 comments on commit 6ffb9ab

Please sign in to comment.