Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Presentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
Presentation
Commits
d8d1c0f6
Commit
d8d1c0f6
authored
1 year ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Add the presentation script and documentation.
parent
efdd85d4
No related branches found
No related tags found
No related merge requests found
Pipeline
#3729
failed
1 year ago
Stage: build
Stage: deploy
Stage: .post
Changes
2
Pipelines
17
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+19
-6
19 additions, 6 deletions
README.md
presentation
+22
-0
22 additions, 0 deletions
presentation
with
41 additions
and
6 deletions
README.md
+
19
−
6
View file @
d8d1c0f6
...
@@ -2,16 +2,15 @@
...
@@ -2,16 +2,15 @@
[

](https://git.shore.co.il/nimrod/presentation/-/commits/master)
[

](https://git.shore.co.il/nimrod/presentation/-/commits/master)
A
Dock
erized presentation toolkit for building presentation from markup
(like
A
contain
erized presentation toolkit for building presentation
s
from markup
Markdown or DOT).
(like
Markdown or DOT).
## Usage
## Usage
`
docker
run --rm -itv “$PWD:/volume“ registry.shore.co.il/presentation`
`
podman
run --rm -itv “$PWD:/volume“ registry.shore.co.il/presentation`
Will watch the current directory and run
`make`
whenever a file changes. One can
Will watch the current directory and run
`make`
whenever a file changes
add a shell alias
(replace
`podman`
with
`docker`
if that's what you're using).
`alias presentation='docker run --rm -itv “$PWD:/volume“ registry.shore.co.il/presentation'`
for easier use.
See the example folder for more details and the
[
generated
See the example folder for more details and the
[
generated
PDF
](
https://git.shore.co.il/nimrod/presentation/-/jobs/artifacts/master/raw/example/presentation.pdf?job=presentation%20build
)
.
PDF
](
https://git.shore.co.il/nimrod/presentation/-/jobs/artifacts/master/raw/example/presentation.pdf?job=presentation%20build
)
.
...
@@ -20,6 +19,20 @@ If you're using GitLab, check out the [CI
...
@@ -20,6 +19,20 @@ If you're using GitLab, check out the [CI
template
](
https://git.shore.co.il/nimrod/presentation/-/blob/master/gitlab-ci-template/presentation.yml
)
template
](
https://git.shore.co.il/nimrod/presentation/-/blob/master/gitlab-ci-template/presentation.yml
)
if you wish to build presentation as part of a pipeline.
if you wish to build presentation as part of a pipeline.
Yet another option is using the contained tools instead of installing them in
your system. For that copy the
[
presentation
script
](
https://git.shore.co.il/nimrod/presentation/-/blob/master/presentation
)
to some in your
`PATH`
and create symlinks to the script with the name of the
binary you wish to use. For example:
```
curl https://git.shore.co.il/nimrod/presentation/-/blob/master/presentation > ~/.local/bin/presentation
chmod +x ~/.local/bin/presentation
ln -s ~/.local/bin/pandoc presentation
```
In this example when you run
`pandoc`
it would run it using podman.
## Contains
## Contains
-
[
Pandoc
](
http://pandoc.org/
)
-
[
Pandoc
](
http://pandoc.org/
)
...
...
This diff is collapsed.
Click to expand it.
presentation
0 → 100755
+
22
−
0
View file @
d8d1c0f6
#!/bin/sh
set
-eu
basename
=
"
$(
basename
"
$0
"
)
"
if
[
"
${
1
:-}
"
=
'-u'
]
then
podman image pull registry.shore.co.il/presentation
elif
[
"
${
1
:-}
"
=
"-h"
]
then
echo
"USAGE:
${
basename
}
[-d] [-h] [BINARY_NAME] [...]"
# If invoked using presentation, pass the arguments to the podman run command.
elif
[
"
$basename
"
=
presentation
]
then
exec
podman run
--rm
--interactive
--tty
--volume
"
$PWD
:/volume"
registry.shore.co.il/presentation
"
$@
"
# Use the system one, if available.
elif
command
-pv
"
$basename
"
>
/dev/null
then
exec
"
$basename
"
"
$@
"
else
exec
podman run
--rm
--interactive
--tty
--volume
"
$PWD
:/volume"
registry.shore.co.il/presentation
"
$basename
"
"
$@
"
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment