-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev Docs: Use Sed To Convert Tables To YAML
Run sed -i -f <this_file.sed> _includes/ref/bitcoin-core/rpcs/rpcs/* _includes/ref/bitcoin-core/rest/requests/get_* _includes/helpers/vars.md ## On lines that start with a pipe: /^|/ { ## Delete all table header/table body divider lines /|----/d; ## Escape all double quotes s/"/\\"/g; ## Replace lines that look like NTPD headers with a itemplate start block s/^| Name *| Type.*/{% itemplate ntpd1 %}/; ## Delete extraneous whitespace s/ *|/|/g; ## Replace the first pipe with "- name:" plus a start quote s/^| */- n: "/; ## Replace the remaining pipes, starting each one with a newline and two spaces s/| */"\n t: "/; s/| */"\n p: "/; s/| */"\n d: "/; ## Add a close quote and an empty line after the last list item ## built from a single table row, except for the header row. This ## improves readability/maintainability /[^}]$/s/$/"\n/; } ## Replace the old table class with the itemplate close tag s/{:.ntpd}/{% enditemplate %}/
- Loading branch information
Showing
83 changed files
with
3,067 additions
and
1,136 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.