You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by GitBox <gi...@apache.org> on 2022/12/20 19:45:18 UTC

[GitHub] [daffodil] tuxji commented on a diff in pull request #897: Update release-candidate to install VS Code Extension docs.

tuxji commented on code in PR #897:
URL: https://github.com/apache/daffodil/pull/897#discussion_r1053683559


##########
containers/release-candidate/src/daffodil-release-candidate:
##########
@@ -300,6 +301,23 @@ case $PROJECT_REPO in
     yarn package
     cp *.vsix $DAFFODIL_RELEASE_DIR/bin/
 
+    echo "Building Extension Docs..."
+    git clone https://github.com/apache/daffodil-vscode.wiki.git .wiki
+    for markdown_file in $(echo "\
+      Apache-Daffodil™-Extension-for-Visual-Studio-Code \
+      Apache-Daffodil™-Extension-for-Visual-Studio-Code:-Development \
+      Apache-Daffodil™-Extension-for-Visual-Studio-Code:-Roadmap \
+      Home"
+    ); do
+      pandoc -t html -f markdown -o "${markdown_file}.html" ".wiki/${markdown_file}.md"

Review Comment:
   If snapshotting the wiki still serves a useful purpose, there are other tools you can look at such as [github-wikito-converter](https://github.com/yakivmospan/github-wikito-converter) which can convert the entire wiki to a single HTML or PDF file in one go:
   
   ```shell
   sudo npm install -g github-wikito-converter
   git clone https://github.com/apache/daffodil-vscode.wiki.git .wiki
   gwtc --file-name <filename> --format <html|pdf> --title "<wiki title>" .wiki
   ```



##########
containers/release-candidate/src/daffodil-release-candidate:
##########
@@ -300,6 +301,23 @@ case $PROJECT_REPO in
     yarn package
     cp *.vsix $DAFFODIL_RELEASE_DIR/bin/
 
+    echo "Building Extension Docs..."
+    git clone https://github.com/apache/daffodil-vscode.wiki.git .wiki
+    for markdown_file in $(echo "\
+      Apache-Daffodil™-Extension-for-Visual-Studio-Code \
+      Apache-Daffodil™-Extension-for-Visual-Studio-Code:-Development \
+      Apache-Daffodil™-Extension-for-Visual-Studio-Code:-Roadmap \
+      Home"

Review Comment:
   Yes, and you can get the list of files quite easily using globbing like this,
   
   ```shell
   cd .wiki
   for markdown_file in *.md; do
     pandoc -t html -f markdown -o "../${markdown_file}.html" "${markdown_file}"
   done
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org