Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ak
Pykyll
Commits
9b03ea5e
Commit
9b03ea5e
authored
Mar 17, 2021
by
ak
Browse files
work on comments issue
parent
5fb27d5b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
6 deletions
+50
-6
examples/slides/README.md
examples/slides/README.md
+7
-1
examples/slides/index.md
examples/slides/index.md
+7
-1
htmlout/examples/picture_test/index.html
htmlout/examples/picture_test/index.html
+8
-0
htmlout/examples/picture_test/index.md
htmlout/examples/picture_test/index.md
+14
-0
htmlout/examples/slides/index.html
htmlout/examples/slides/index.html
+3
-1
htmlout/examples/slides/index.md
htmlout/examples/slides/index.md
+7
-1
pykyll.py
pykyll.py
+4
-2
No files found.
examples/slides/README.md
View file @
9b03ea5e
...
...
@@ -18,7 +18,10 @@
# Pykyll Slide Decks
How to and example
How to and example
Note:
Press [s] in speaker view. Allow pop-ups
---
...
...
@@ -29,6 +32,9 @@ How to and example
-
Change
`html`
frontmatter tag to
`true`
-
Change
`type`
frontmatter tag to
`slides`
Note:
There there.
---
## Contents
...
...
examples/slides/index.md
View file @
9b03ea5e
...
...
@@ -16,7 +16,10 @@ type: slides
# Pykyll Slide Decks
How to and example
How to and example
<!-- .element class="fragment fade-in" data-fragment-index="1" -->
Note:
Press [s] in speaker view. Allow pop-ups
---
...
...
@@ -27,6 +30,9 @@ How to and example
-
Change
`html`
frontmatter tag to
`true`
-
Change
`type`
frontmatter tag to
`slides`
Note:
There there.
---
## Contents
...
...
htmlout/examples/picture_test/index.html
View file @
9b03ea5e
...
...
@@ -94,6 +94,7 @@
<ul>
<li><a
href=
"#html5-video"
>
HTML5 Video
</a></li>
<li><a
href=
"#audio"
>
Audio
</a></li>
<li><a
href=
"#audio-1"
>
Audio
</a></li>
</ul></li>
</ul></li>
</ul>
...
...
@@ -172,5 +173,12 @@ View, have others <a href="slides.html">view along</a> or read right here:
<span
id=
"cb2-2"
><a
href=
"#cb2-2"
aria-hidden=
"true"
></a><span
class=
"kw"
>
<
audio
</span><span
class=
"ot"
>
controls src=
</span><span
class=
"st"
>
"
audio.mp3
"
</span><span
class=
"ot"
>
type=
</span><span
class=
"st"
>
"
audio/mpeg
"
</span><span
class=
"kw"
>
><
/audio
>
</span></span></code></pre></div>
<p>
A better way to embedd audio files may be implemented in a future version. Contributions welcome.
</p>
<hr
/>
<h3
id=
"audio-1"
>
Audio
</h3>
<audio
controls
src=
"audio.mp3"
type=
"audio/mpeg"
>
</audio>
<div
class=
"sourceCode"
id=
"cb3"
><pre
class=
"sourceCode html"
><code
class=
"sourceCode html"
><span
id=
"cb3-1"
><a
href=
"#cb3-1"
aria-hidden=
"true"
></a></span>
<span
id=
"cb3-2"
><a
href=
"#cb3-2"
aria-hidden=
"true"
></a><span
class=
"kw"
>
<
audio
</span><span
class=
"ot"
>
controls src=
</span><span
class=
"st"
>
"
audio.mp3
"
</span><span
class=
"ot"
>
type=
</span><span
class=
"st"
>
"
audio/mpeg
"
</span><span
class=
"kw"
>
><
/audio
>
</span></span></code></pre></div>
<p>
A better way to embedd audio files may be implemented in a future version. Contributions welcome.
</p>
<hr
/>
</body>
</html>
htmlout/examples/picture_test/index.md
View file @
9b03ea5e
...
...
@@ -85,4 +85,18 @@ Here, the video is stored in a NextCloud instance. How to:
A better way to embedd audio files may be implemented in a future version. Contributions welcome.
---
### Audio
<audio
controls
src=
"audio.mp3"
type=
"audio/mpeg"
></audio>
```
html
<audio
controls
src=
"audio.mp3"
type=
"audio/mpeg"
></audio>
```
A better way to embedd audio files may be implemented in a future version. Contributions welcome.
---
\ No newline at end of file
htmlout/examples/slides/index.html
View file @
9b03ea5e
...
...
@@ -119,7 +119,8 @@ View, have others <a href="slides.html">view along</a> or read right here:
</table>
<!-- .slide: data-background="black" -->
<h1
id=
"pykyll-slide-decks"
>
Pykyll Slide Decks
</h1>
<p>
How to and example
</p>
<p>
How to and example
<!-- .element class="fragment fade-in" data-fragment-index="1" -->
</p>
<p>
Note: Press [s] in speaker view. Allow pop-ups
</p>
<hr
/>
<h2
id=
"set-up"
>
Set-up
</h2>
<ul>
...
...
@@ -130,6 +131,7 @@ View, have others <a href="slides.html">view along</a> or read right here:
<li>
Change
<code>
type
</code>
frontmatter tag to
<code>
slides
</code></li>
</ul></li>
</ul>
<p>
Note: There there.
</p>
<hr
/>
<h2
id=
"contents"
>
Contents
</h2>
<p>
A slide show in markdown could look like this:
</p>
...
...
htmlout/examples/slides/index.md
View file @
9b03ea5e
...
...
@@ -2,7 +2,10 @@
# Pykyll Slide Decks
How to and example
How to and example
<!-- .element class="fragment fade-in" data-fragment-index="1" -->
Note:
Press [s] in speaker view. Allow pop-ups
---
...
...
@@ -13,6 +16,9 @@ How to and example
-
Change
`html`
frontmatter tag to
`true`
-
Change
`type`
frontmatter tag to
`slides`
Note:
There there.
---
## Contents
...
...
pykyll.py
View file @
9b03ea5e
...
...
@@ -341,8 +341,10 @@ class Pykyll:
out_string
=
out_string
+
"# "
+
link
+
"
\n\n
"
else
:
out_string
=
out_string
+
\
re
.
sub
(
"(<!--.*?-->)"
,
""
,
post
.
content
)
re
.
sub
(
"(<!--.*?-->)"
,
""
,
post
.
content
)
# needs rethinking
if
post
[
"type"
]
==
"slides"
:
out_string
=
re
.
sub
(
"(<!--.*?-->)"
,
""
,
out_string
,
flags
=
re
.
MULTILINE
)
out_string
=
out_string
+
\
"
\n\n
#### {}
\n\n
{}
\n\n
{}"
.
format
(
post
[
"title"
],
post
[
"subtitle"
],
post
[
"description"
])
...
...
ak
@ak
mentioned in commit
500cf598
·
Mar 22, 2021
mentioned in commit
500cf598
mentioned in commit 500cf59833c28eedc5ddc9e608eb3df6c6fa3ba3
Toggle commit list
ak
@ak
mentioned in commit
4f6a3958
·
Apr 04, 2021
mentioned in commit
4f6a3958
mentioned in commit 4f6a3958ab15f7f41b95f68d9c5b0c8e77027205
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment