Go to file
Folkert Kevelam 1eb07a262c
Add options for multi column code examples (#8)
* Reformat Blocks with a hashed_map

In the package Pandoc a function called `Get_Type()` is defined,
which takes a JSON block and returns the pandoc assigned type.

The main code of the `Traverse_Block` function is changed to
use an enumeration of Pandoc types instead of comparing string.

* Rename Package to reduce text

* Correct indent

* Add functions for creating Div's and Attributes

* Change table with codeblocks to nested div's

* Add sidebar_position for Ada_Style_Guide.mdx
2025-05-31 13:59:57 +03:00
data Import initial sources 2022-09-10 10:47:13 +03:00
gnat Import initial sources 2022-09-10 10:47:13 +03:00
source Add options for multi column code examples (#8) 2025-05-31 13:59:57 +03:00
.gitignore Import initial sources 2022-09-10 10:47:13 +03:00
2wiki.sh Split long sections into subdirectories. 2023-04-21 14:19:07 +03:00
alire.toml Import initial sources 2022-09-10 10:47:13 +03:00
fetch.sh Add options for multi column code examples (#8) 2025-05-31 13:59:57 +03:00
LICENSE Initial commit 2022-09-10 10:32:14 +03:00
note.mdx Add an empty line before :::note admonitions 2022-09-26 13:49:31 +03:00
README.md Rewrite to work with pandoc-3.1.3 2025-05-12 23:24:18 +03:00

Scripts to fetch Ada Quality and Style Guide wikibook

These scripts convert the WiKi book to ada-lang.io markdown.

Requirements

You need pandoc-3.1.3, curl, sed installed.

Build and run

Build a pandoc filter with Alire:

alr build

Then run:

./fetch.sh <OUTPUT_DIR>

Then run yarn format in ada-lang.io repository to reformat output according to Docusaurus style.

To be fixed

  • Arrange code blocks in Source Code Presentation in two columns
  • Add chapter/section numbers
  • Replace "see Guideline X.Y.Z{,/and X.Y.Z}", "Chapter X", "Sections X.Y" with cross links
  • change definition lists? (in Portability, OOP)
  • Fix Wikipedia links
  • Fix examples in Reusability: "Compare the body for the simplest version"
  • Fix ACES in References
  • Fix Bibliography