Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add templating chapter #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: sh ./build.sh

- name: Build Slides
run: docker run -u $(id -u):$(id -g) --rm -v ${{ github.workspace }}/dist:/dist -v ${{ github.workspace }}/resources:/slides webpronl/reveal-md:latest /slides/go-tour.md --static /dist --static-dirs=theme,img --theme theme/cc.css
run: docker run -u $(id -u):$(id -g) --rm -v ${{ github.workspace }}/dist:/dist -v ${{ github.workspace }}/resources:/slides webpronl/reveal-md:latest /slides/go-tour.md --static /dist --static-dirs=theme,img --theme theme/gg.css
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:-)


- name: Upload artifact
uses: actions/upload-pages-artifact@v1
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* start container

```console
$ docker run --rm -p 8000:1948 -v $(pwd)/resources:/slides webpronl/reveal-md:latest /slides --theme theme/cc.css
$ docker run --rm -p 8000:1948 -v $(pwd)/resources:/slides webpronl/reveal-md:latest /slides --theme theme/gg.css
```

* run periodic slides update
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ COPY resources /slides

EXPOSE 8080

CMD [ "/slides", "--theme", "theme/cc.css", "--port", "8080"]
CMD [ "/slides", "--theme", "theme/gg.css", "--port", "8080"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ watch -n5 ./build.sh
* start container

```console
$ docker run --rm -p 8080:1948 -v $(pwd)/resources:/slides webpronl/reveal-md:latest /slides --theme theme/cc.css
$ docker run --rm -p 8080:1948 -v $(pwd)/resources:/slides webpronl/reveal-md:latest /slides --theme theme/gg.css
```

* or build image and run a container
Expand Down
Binary file added resources/img/TEMPLATING/00.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/img/TEMPLATING/01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/img/TEMPLATING/02.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/img/TEMPLATING/03.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/img/TEMPLATING/04.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion resources/theme/cc.css → resources/theme/gg.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ body > a {
*********************************************/
.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
margin: 0 0 2.5rem 0;
color: #444;
color: #00caf0;
font-family: "Roboto Slab", serif;
font-weight: normal;
line-height: 1.2;
Expand Down Expand Up @@ -359,3 +359,12 @@ section.intro.past {

.master05.intro h1:before, .master05.intro h2:before, .master05.intro h3:before {
color: #69B978; }


/*********************************************
* CUSTOM
*********************************************/
.shadow-img {
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
border-radius: 4px;
}
30 changes: 25 additions & 5 deletions slides/00-introduction/SLIDES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,32 @@
# Go Tour

----
## Authors

| | |
|----------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ![Manfred](img/cc_manfred.jpg)<!-- .element height="200px" --> | <ul><li>[Manfred Dreese](https://codecentric.de)<br />[dreese.de](https://dreese.de)<br />[github/i78](https://github.com/i78)<br />[twitter/dem9d](https://twitter.com/dem9d)<br /></li></ul> |
| ![grohmio](img/cc_grohmio.png)<!-- .element height="200px" --> | <ul><li>[Andreas Grohmann](https://grohm.io)<br />[grohm.io](https://grohm.io)<br />[github/grohmio](https://github.com/grohmio)<br />[twitter/grohmeo](https://twitter.com/grohmeo)<br />[stackoverflow/grohmio](https://stackoverflow.com/users/6654539/grohmio)</li></ul> |
## Authors
<table>
<tbody>
<tr>
<td style="vertical-align: middle;"><img src="img/cc_manfred.jpg" style="height:200px;"></td>
<td style="vertical-align: middle;">
<a href="https://codecentric.de">Manfred Dreese</a><br>
<a href="https://dreese.de">dreese.de</a><br>
<a href="https://dreese.de">dreese.de</a><br>
<a href="https://github.com/i78">github/i78</a><br>
<a href="https://twitter.com/dem9d">twitter/dem9d</a>
</td>
</tr>
<tr>
<td style="vertical-align: middle;"><img src="img/cc_grohmio.png" style="height:200px;"></td>
<td style="vertical-align: middle;">
<a href="https://grohm.io">Andreas Grohmann</a><br>
<a href="https://grohm.io">grohm.io</a><br>
<a href="https://github.com/grohmio">github/grohmio</a><br>
<a href="https://twitter.com/grohmeo">twitter/grohmeo</a><br>
<a href="https://stackoverflow.com/users/6654539/grohmio">stackoverflow/grohmio</a>
</td>
</tr>
</tbody>
</table>

----
<!-- .slide: data-background="img/MAIN/GOTOUR-TIME-TO-CODE-00-big.jpg" data-background-size="100%" data-background-position="50% 50%" -->
Expand Down
Loading