Skip to content

Commit 2ffcfa6

Browse files
authored
fixed markdown in wiki
1 parent ededb81 commit 2ffcfa6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/update-wiki.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,21 @@ jobs:
6060
EOF
6161
- name: View config
6262
run: cat .phpdoc-md
63-
- name: Genereting docs...
63+
- name: Generating docs...
6464
run: ./vendor/bin/phpdoc-md
6565
- name: Updating docs folder
6666
run: cp -r ./.docs.old/.git ./.docs/.git
6767
- name: Renaming README.md -> HOME.md
6868
working-directory: .docs/
6969
run: mv README.md HOME.md
70-
- name: Adding extra info to HOME.md
70+
- name: Fixing autogenerated markdown file contents
7171
working-directory: .docs/
7272
run: |
73-
sed -i '1i##### Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!' HOME.md
74-
sed -i "2i\ " HOME.md
73+
find *.md -type f -exec sed -i 's/\.md//g' {} \;
74+
sed -i '1d' HOME.md
75+
sed -i '1i# API Documentation' HOME.md
76+
sed -i '2i> Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!' HOME.md
77+
sed -i "3i\ " HOME.md
7578
- name: Configuring commit author
7679
working-directory: .docs/
7780
run: |

0 commit comments

Comments
 (0)