Go talks style presentation theme for Sphinx.
output: | https://sphinxjpthemesgopher.readthedocs.io |
---|---|
source: | https://sphinxjpthemesgopher.readthedocs.io/_sources/index.rst.txt |
- Provide Go talks style theme for render presetation.
- You don't need to learn a special directive and role. All you have to know generally ReStructuredText.
- Support PDF export.
- Support Presenter notes.
- Support OGP tags.
Presentations can be exported to PDF via a print stylesheet. This feature requires that you use Google Chrome or Chromium.
- Open your presentation.
- Open the in-browser print dialog (CMD+P).
- Change the Destination setting to Save as PDF.
- Click Save.
1. Embed notes
.. rst-class:: presenter-notes
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
2. Turn on note_enabled
in conf.py
html_theme_options = {
'note_enabled': True, # => default False.
}
This will allow you to open a second window by pressing 'N' from your browser displaying your slides. The second window is completely synced with your main window, except that presenter notes are only visible on the second window.
You can add OGP settings in conf.py.
html_theme_options = {
# for canonical
'canonical':'https://sphinxjpthemesgopher.readthedocs.io',
# for title and "og:title" and "twitter:title"
'ogp_title':'Sphinxjp.themes.gopher',
# for "og:image" and "twitter:image"
'ogp_image':'https://sphinxjpthemesgopher.readthedocs.io/_static/img/ogp.png',
# for description and "og:description" and "twitter:description"
'ogp_description':'A sphinx theme for generate gotalk style presentation. #sphinxjp',
# for "og:url"
'og_url':'https://sphinxjpthemesgopher.readthedocs.io',
# for "og:site_name"
'og_site_name':'readthedocs',
# for "og:type"
'og_type':'article',
# for "article:author"
'og_author':'https://github.com/tell-k',
# for "twitter:card". default "summary"
'twitter_card_type':'summary_large_image',
# for "twitter:site"
'twitter_card_site':'@tell_k',
# for "twitter:creator"
'twitter_card_creator':'@tell_k',
}
- It does not support the hosting of the http://talks.golang.org.
- It cannot enable to playground.
Make environment with pip:
$ pip install sphinxjp.themes.gopher
setup conf.py with:
extensions = ['sphinxjp.themes.gopher'] html_theme = 'gopher' html_use_index = False
and run:
$ make html
- Python 2.7 or later
- Sphinx 1.3.x or later.
- static files in golang/tools
- sphinxjp.themes.gopher Licensed under the MIT license .
- orginal static files(styles.css, slides.js) are licensed under the BSD lincense
See the src/LICENSE.txt file for specific terms.