Skip to content

Commit

Permalink
README updated, and PNG, SVG images removed from the repo
Browse files Browse the repository at this point in the history
Signed-off-by: Davide Scano <[email protected]>
  • Loading branch information
Dscano committed Dec 7, 2024
1 parent 9eae1e4 commit 6a58e48
Show file tree
Hide file tree
Showing 17 changed files with 13 additions and 19,239 deletions.
15 changes: 13 additions & 2 deletions docs/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ Files:

## Document Figures

The P4Runtime specification can be generated on your local machine or via the Docker container. Due to this, the document figure can be rendered using two different approaches

### Local machine

You need to install [LibreOffice](https://nl.libreoffice.org/) on your local machine.

Each image in the specification has a corresponding `.odg` file under
`resources/figs/`. These are LibreOffice drawing files. The files are rendered into
`.svg` and `.png` images (for HTML and PDF output, resepectively) at build time,
Expand All @@ -51,6 +57,11 @@ Commands to convert a image `.odg` to `.svg` and/or `.png` and move to `resourc
soffice --convert-to svg --outdir resources/figs/ figure_name.odg
soffice --convert-to png --outdir resources/figs/ figure_name.odg
```
### Docker container

The Docker container, generated from the `p4lang/p4rt-asciidoc:latest` image, does not require
LibreOffice to be installed.


## Building

Expand All @@ -61,8 +72,8 @@ The easiest way to render the AsciiDoc specification documentation is to use the

### Linux
```
You can use the [local installation](https://github.com/p4lang/p4-spec/blob/main/p4-16/spec/install-asciidoctor-linux.sh)
method.
You can use the [local installation](https://github.com/p4lang/p4-spec/blob/main/p4-16/spec/install-asciidoctor-linux.sh) method, and you also need to install LibreOffice to render the
images into .svg and .png formats.
### MacOS
Expand Down
Binary file not shown.
271 changes: 0 additions & 271 deletions docs/v1/resources/figs/embedded-plus-single-remote-controller.svg

This file was deleted.

Binary file not shown.
311 changes: 0 additions & 311 deletions docs/v1/resources/figs/embedded-plus-two-remote-controllers.svg

This file was deleted.

Binary file not shown.
518 changes: 0 additions & 518 deletions docs/v1/resources/figs/embedded-plus-two-remote-ha-controllers.svg

This file was deleted.

Binary file removed docs/v1/resources/figs/error-report.png
Binary file not shown.
244 changes: 0 additions & 244 deletions docs/v1/resources/figs/error-report.svg

This file was deleted.

Binary file removed docs/v1/resources/figs/psa-metadata-translation.png
Binary file not shown.
767 changes: 0 additions & 767 deletions docs/v1/resources/figs/psa-metadata-translation.svg

This file was deleted.

Binary file removed docs/v1/resources/figs/reference-architecture.png
Binary file not shown.
16,689 changes: 0 additions & 16,689 deletions docs/v1/resources/figs/reference-architecture.svg

This file was deleted.

Binary file not shown.
220 changes: 0 additions & 220 deletions docs/v1/resources/figs/single-embedded-controller.svg

This file was deleted.

Binary file removed docs/v1/resources/figs/single-remote-controller.png
Binary file not shown.
217 changes: 0 additions & 217 deletions docs/v1/resources/figs/single-remote-controller.svg

This file was deleted.

0 comments on commit 6a58e48

Please sign in to comment.