Commit 146460a
authored
ENH: Reduce file size (#433)
Close #430
Several improvements:
1. PDF files of the documentation have been compressed using
`ghostscript` as described
[here](https://www.digitalocean.com/community/tutorials/reduce-pdf-file-size-in-linux)
using the `\ebook` setting (and for some of them, only the interesting
pages remain)
2. Patterns in the TikZ pictures have been replaced with a simple fill
colour to reduce the size of the SVG output.
3. PNG and JPG images of the documentation have been converted into
`webp` files using the commands
```bash
find . -name '*.jpg' -exec sh -c 'convert $1 ${1%.jpg}.webp' sh {} ';'
find . -name '*.png' -exec sh -c 'convert $1 ${1%.png}.webp' sh {} ';'
```
4. HTML files located in the `doc/_static/` folder have been minified
using the [minhtml](https://github.com/wilsonzlin/minify-html) command
line tool:
```bash
minhtml --keep-closing-tags --minify-css --minify-js --minify-doctype
doc/_static/**/*.html
```
The biome formatter has been disabled for this folder.
5. The script to generate the HTML plots of the networks has been
updated to generate new static HTML files (considering #418 and #426).
The code to plot all the networks of the catalogue on the same map is
purely a large copy-paste of the code used to plot the networks
individually. Only a few lines of code are adapted, but I would rather
not refactor the entire plotting module for a single plot.1 parent 85c77c7 commit 146460a
File tree
181 files changed
+3778
-119932
lines changed- doc
- _static
- Advanced
- IO
- Line
- Load
- FlexibleLoad
- Network
- Plotting
- Transformer
- References
- VoltageSource
- css
- advanced
- images
- Line
- Load/FlexibleLoad
- usage
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
181 files changed
+3778
-119932
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Loading
This file was deleted.
Loading
0 commit comments