Skip to content

Commit

Permalink
made imagesdir relative to fix the boost docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Jul 22, 2024
1 parent 66c1196 commit b74d61e
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
13 changes: 13 additions & 0 deletions doc/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ explicit cobalt.pdf ;
install pdf_ : cobalt.pdf : <location>pdf ;
explicit pdf_ ;

install images
:
images/awaitables.png
images/generators1.png
images/generators2.png
images/lazy_eager1.png
images/lazy_eager2.png
images/stackless1.png
images/stackless2.png
:
<location>html/images
;

alias boostdoc ;
explicit boostdoc ;
alias boostrelease : html_ ;
Expand Down
4 changes: 2 additions & 2 deletions doc/background/lazy_eager.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ sequenceDiagram
endif::[]

ifndef::generate-diagram[]
image::{docdir}/images/lazy_eager1.png[]
image::lazy_eager1.png[]
endif::[]


Expand Down Expand Up @@ -113,5 +113,5 @@ sequenceDiagram
endif::[]

ifndef::generate-diagram[]
image::{docdir}/images/lazy_eager2.png[]
image::lazy_eager2.png[]
endif::[]
4 changes: 2 additions & 2 deletions doc/background/stackless.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sequenceDiagram
endif::[]

ifndef::generate-diagram[]
image::{docdir}/images/stackless1.png[]
image::stackless1.png[]
endif::[]

Coroutines can be implemented a stackful, which means that it allocates a fixes chunk of memory and stacks function frames similar to a thread.
Expand Down Expand Up @@ -100,7 +100,7 @@ sequenceDiagram
endif::[]

ifndef::generate-diagram[]
image::{docdir}/images/stackless2.png[]
image::stackless2.png[]
endif::[]

The same applies if a coroutine gets moved accross threads.
2 changes: 1 addition & 1 deletion doc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Version 0.1, 29.01.2023
:source-language: c++
:example-caption: Example

:imagesdir: {docdir}/images
:imagesdir: ./images

:leveloffset: +1

Expand Down
2 changes: 1 addition & 1 deletion doc/primer/awaitables.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ flowchart TD
endif::[]

ifndef::generate-diagram[]
image::{docdir}/images/awaitables.png[]
image::awaitables.png[]
endif::[]

In a `co_await` expression the waiting coroutine will first invoke
Expand Down
4 changes: 2 additions & 2 deletions doc/reference/generators.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ sequenceDiagram
endif::[]

ifndef::generate-diagram[]
image::{docdir}/images/generators1.png[]
image::generators1.png[]
endif::[]

Values can be pushed into the generator, when `Push` (the second template parameter) is set to non-void:
Expand Down Expand Up @@ -142,7 +142,7 @@ sequenceDiagram
endif::[]

ifndef::generate-diagram[]
image::{docdir}/images/generators2.png[]
image::generators2.png[]
endif::[]

[#generator-executor]
Expand Down

0 comments on commit b74d61e

Please sign in to comment.