Skip to content

Commit cda3005

Browse files
committed
✨ link images in README using relative docs parameter
- unfortunately does not work with href links as it seems
1 parent 6c1da55 commit cda3005

File tree

4 files changed

+45
-30
lines changed

4 files changed

+45
-30
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
<div align="center">
2-
<img width="300px" src="docs/images/vuegen_logo.svg">
3-
</div>
4-
1+
<!-- <div align="center">
2+
<img width="300px" src="images/vuegen_logo.svg">
3+
</div> -->
4+
![VueGen Logo](docs/images/vuegen_logo.svg)
55
-----------------
6-
76
<p align="center">
87
VueGen is a Python library that automates the creation of scientific reports.
98
</p>
@@ -19,19 +18,22 @@ VueGen automates the creation of scientific reports based on a YAML configuratio
1918

2019
An overview of the VueGen workflow is shown in the figure below:
2120

22-
<p align="center">
21+
<!-- <p align="center">
2322
<figure>
24-
<img width="650px" src="docs/images/vuegen_graph_abstract.png" alt="VueGen overview"/>
23+
<img width="650px" src="images/vuegen_graph_abstract.png" alt="VueGen overview"/>
2524
</figure>
26-
</p>
25+
</p> -->
26+
![VueGen Abstract](docs/images/vuegen_graph_abstract.png)
2727

2828
Also, the class diagram for the project is presented below to illustrate the architecture and relationships between classes:
2929

30-
<p align="center">
30+
<!-- <p align="center">
3131
<figure>
32-
<img width="650px" src="docs/images/vuegen_classdiagram_noattmeth.png" alt="VueGen class diagram"/>
32+
<img width="650px" src="images/vuegen_classdiagram_noattmeth.png" alt="VueGen class diagram"/>
3333
</figure>
34-
</p>
34+
</p> -->
35+
36+
![VueGen Class Diagram](docs/images/vuegen_classdiagram_noattmeth.png)
3537

3638
## Installation
3739

docs/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ sphinx-apidoc --force --implicit-namespaces --module-first -o reference ../vuege
3030
# build docs
3131
sphinx-build -n -W --keep-going -b html ./ ./_build/
3232
```
33+
34+
## Include repo README.md into docs
35+
36+
Relative links are used in the main README, which need to be resolved when building. It's
37+
possible to include the a `relative-docs` option if one uses `index.md` ([see docs](https://myst-parser.readthedocs.io/en/latest/faq/index.html#include-a-file-from-outside-the-docs-folder-like-readme-md)). This does not work
38+
with `href` links, only native markdown links.
39+

docs/index.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Overview
2+
3+
<!-- https://myst-parser.readthedocs.io/en/latest/faq/index.html
4+
#include-a-file-from-outside-the-docs-folder-like-readme-md -->
5+
```{include} ../README.md
6+
:start-line: 0
7+
:relative-docs: docs
8+
:relative-images:
9+
```
10+
11+
```{toctree}
12+
:maxdepth: 2
13+
:caption: Modules
14+
:hidden:
15+
16+
reference/vuegen
17+
```
18+
19+
```{toctree}
20+
:maxdepth: 1
21+
:caption: MISC:
22+
:hidden:
23+
24+
README.md
25+
```

docs/index.rst

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)