Add license note to each page.
This commit is contained in:
parent
e7096e302e
commit
a262903d0a
8
fetch.sh
8
fetch.sh
|
|
@ -9,7 +9,7 @@ mkdir -p $OUTPUT
|
||||||
curl -o data/Ada_Style_Guide.wiki "https://en.wikibooks.org/w/index.php?title=Ada_Style_Guide&action=raw"
|
curl -o data/Ada_Style_Guide.wiki "https://en.wikibooks.org/w/index.php?title=Ada_Style_Guide&action=raw"
|
||||||
|
|
||||||
CHAPTERS=`grep -F '* [[' data/Ada_Style_Guide.wiki | sed -e 's#.*/\([^|]*\)|.*#\1#' -e 's/ /_/g'`
|
CHAPTERS=`grep -F '* [[' data/Ada_Style_Guide.wiki | sed -e 's#.*/\([^|]*\)|.*#\1#' -e 's/ /_/g'`
|
||||||
INDEX=2
|
INDEX=1
|
||||||
for J in $CHAPTERS; do
|
for J in $CHAPTERS; do
|
||||||
curl -o data/$J.wiki "https://en.wikibooks.org/w/index.php?title=Ada_Style_Guide/$J&action=raw"
|
curl -o data/$J.wiki "https://en.wikibooks.org/w/index.php?title=Ada_Style_Guide/$J&action=raw"
|
||||||
# Suppress quote format to replace it latter
|
# Suppress quote format to replace it latter
|
||||||
|
|
@ -26,7 +26,7 @@ sidebar_position: $INDEX
|
||||||
---
|
---
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
cat /tmp/front_matter /tmp/mdx > $OUTPUT/$J.mdx
|
cat /tmp/front_matter note.mdx /tmp/mdx > $OUTPUT/$J.mdx
|
||||||
INDEX=$((INDEX+1))
|
INDEX=$((INDEX+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
@ -35,7 +35,7 @@ cat > /tmp/front_matter <<-EOF
|
||||||
---
|
---
|
||||||
title: Ada Quality and Style Guide
|
title: Ada Quality and Style Guide
|
||||||
description: Guidelines for Professional Programmers
|
description: Guidelines for Professional Programmers
|
||||||
sidebar_position: 1
|
sidebar_position: 0
|
||||||
draft: true
|
draft: true
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -46,4 +46,4 @@ EOF
|
||||||
sed -e '/<noinclude>/,/<.noinclude>/d' data/Ada_Style_Guide.wiki |
|
sed -e '/<noinclude>/,/<.noinclude>/d' data/Ada_Style_Guide.wiki |
|
||||||
pandoc -f mediawiki -t gfm --filter ./bin/aqs2mdx > /tmp/mdx
|
pandoc -f mediawiki -t gfm --filter ./bin/aqs2mdx > /tmp/mdx
|
||||||
|
|
||||||
cat /tmp/front_matter /tmp/mdx > $OUTPUT/Ada_Style_Guide.mdx
|
cat /tmp/front_matter note.mdx /tmp/mdx > $OUTPUT/Ada_Style_Guide.mdx
|
||||||
|
|
|
||||||
11
note.mdx
Normal file
11
note.mdx
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
:::note
|
||||||
|
|
||||||
|
This page of the "Ada Quality and Style Guide" has been adapted from the
|
||||||
|
original work at https://en.wikibooks.org/wiki/Ada_Style_Guide, which is
|
||||||
|
licensed under the
|
||||||
|
[Creative Commons Attribution-ShareAlike License](https://creativecommons.org/licenses/by-sa/3.0/);
|
||||||
|
additional terms may apply. Page not endorsed by Wikibooks or the Ada
|
||||||
|
Style Guide Wikibook authors. This page is licensed under the same license
|
||||||
|
as the original work.
|
||||||
|
|
||||||
|
:::
|
||||||
Loading…
Reference in New Issue
Block a user