2022-08-16 13:08:14 +03:00
|
|
|
# Hurl Documentation
|
|
|
|
|
|
|
|
This directory is the canonical source for Hurl documentation. The site <https://hurl.dev>, powered by Jekyll,
|
2022-08-31 19:14:45 +03:00
|
|
|
is generated from it. If you want to modify <https://hurl.dev>, you can make a PR in this repo.
|
2022-08-16 13:08:14 +03:00
|
|
|
|
2022-08-31 19:14:45 +03:00
|
|
|
## Manual Page
|
2022-08-16 13:08:14 +03:00
|
|
|
|
2022-08-31 19:14:45 +03:00
|
|
|
The canonical source for the Hurl manual pages is at <https://github.com/Orange-OpenSource/hurl/tree/master/docs/manual>.
|
2022-08-16 13:08:14 +03:00
|
|
|
The markdown files [`hurl.md`] and [`hurlfmt.md`] are used :
|
|
|
|
|
2022-08-31 19:14:45 +03:00
|
|
|
- to generate manual pages [`hurl.1`] and [`hurlfmt.1`]
|
2022-09-02 15:45:54 +03:00
|
|
|
- to generate Markdown documentation page [`manual.md`] for <https://hurl.dev>
|
|
|
|
|
|
|
|
Dependencies:
|
2022-08-16 13:08:14 +03:00
|
|
|
|
|
|
|
```
|
2022-08-31 19:14:45 +03:00
|
|
|
docs/manual/hurl.md => docs/manual/hurl.1
|
2022-09-02 15:45:54 +03:00
|
|
|
docs/manual/hurl.md => docs/manual.md
|
2022-08-16 13:08:14 +03:00
|
|
|
|
2022-08-31 19:14:45 +03:00
|
|
|
docs/manual/hurlfmt.md => docs/manual/hurlfmt.1
|
2022-08-16 13:08:14 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
## READMEs
|
|
|
|
|
|
|
|
[GitHub README] and [crates.io README] are generated from the canonical docs.
|
|
|
|
|
2022-09-02 15:45:54 +03:00
|
|
|
Dependencies:
|
|
|
|
|
2022-08-16 13:08:14 +03:00
|
|
|
```
|
|
|
|
docs/*.md => README.md
|
|
|
|
docs/*.md => packages/hurl/README.md
|
|
|
|
```
|
|
|
|
|
2022-08-16 15:17:44 +03:00
|
|
|
## Scripts
|
|
|
|
|
2022-09-02 01:29:23 +03:00
|
|
|
1. generate manual
|
|
|
|
2. generate <hurl.dev> manual
|
2022-08-16 15:17:44 +03:00
|
|
|
3. generate GitHub README
|
|
|
|
4. generate crates.io README
|
|
|
|
|
|
|
|
```bash
|
2022-08-31 19:14:45 +03:00
|
|
|
$ python3 bin/release/gen_manpage.py docs/manual/hurl.md > docs/manual/hurl.1
|
|
|
|
$ python3 bin/release/gen_manpage.py docs/manual/hurlfmt.md > docs/manual/hurlfmt.1
|
2022-09-02 15:45:54 +03:00
|
|
|
$ python3 bin/docs/build_man_md.py docs/manual/hurl.md > docs/manual.md
|
2022-08-16 15:17:44 +03:00
|
|
|
$ python3 bin/docs/build_readme.py github > README.md
|
|
|
|
$ python3 bin/docs/build_readme.py crates > packages/hurl/README.md
|
|
|
|
```
|
|
|
|
|
2022-08-16 13:08:14 +03:00
|
|
|
|
2022-08-31 19:14:45 +03:00
|
|
|
[`hurl.md`]: https://github.com/Orange-OpenSource/hurl/tree/master/docs/manual/hurl.md
|
|
|
|
[`hurlfmt.md`]: https://github.com/Orange-OpenSource/hurl/tree/master/docs/manual/hurlfmt.md
|
|
|
|
[`hurl.1`]: https://github.com/Orange-OpenSource/hurl/tree/master/docs/manual/hurl.1
|
|
|
|
[`hurlfmt.1`]: https://github.com/Orange-OpenSource/hurl/tree/master/docs/manual/hurlfmt.1
|
2022-09-02 15:45:54 +03:00
|
|
|
[`manual.md`]: https://github.com/Orange-OpenSource/hurl/blob/master/docs/manual.md
|
2022-08-16 13:08:14 +03:00
|
|
|
[GitHub README]: https://github.com/Orange-OpenSource/hurl/blob/master/README.md
|
|
|
|
[crates.io README]: https://github.com/Orange-OpenSource/hurl/blob/master/packages/hurl/README.md
|
|
|
|
|