Skip to main content

Go talks style presentation theme for Sphinx.

travis coveralls.io latest version license requires.io

Output Sample

output:

https://sphinxjpthemesgopher.readthedocs.io

source:

https://sphinxjpthemesgopher.readthedocs.io/_sources/index.rst.txt

Features

  • 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.

PDF Export

Presentations can be exported to PDF via a print stylesheet. This feature requires that you use Google Chrome or Chromium.

  1. Open your presentation.

  2. Open the in-browser print dialog (CMD+P).

  3. Change the Destination setting to Save as PDF.

  4. Click Save.

Presenter Notes

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.

https://raw.githubusercontent.com/tell-k/sphinxjp.themes.gopher/master/docs/_static/img/presenter-notes.png

OGP Tags

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',
}

Caution

Set up

Make environment with pip:

$ pip install sphinxjp.themes.gopher

Convert Usage

setup conf.py with:

extensions = ['sphinxjp.themes.gopher']
html_theme = 'gopher'
html_use_index = False

and run:

$ make html

Requirement

  • Python 2.7 or later

  • Sphinx 1.3.x or later.

Using

License

See the src/LICENSE.txt file for specific terms.

AUTHORS

Sphinx template, css, packaging

  • tell-k <ffk2005 at gmail.com>

History

0.2.3 (Apr 15, 2019)

0.2.2 (Sep 25, 2018)

  • Fixed “Title slide” styles.

0.2.1 (Sep 22, 2018)

  • Add support for embedding canonical tags

0.2.0 (Sep 22, 2018)

  • Catch up with latest golang/tools static files.

  • Add support for display on mobile.

  • Add support for presenter notes.

  • Add support for OGP tag embedding.

  • Add Python 3.7 support.

0.1.1 (Mar 6, 2018)

0.1.0 (Nov 23, 2015)

  • First release

Metadata

Release files for sphinxjp.themes.gopher 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinxjp.themes.gopher 0.2.3
File Size Uploaded
sphinxjp.themes.gopher-0.2.3.tar.gz 598.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinxjp.themes.gopher 0.2.3
File Interpreter ABI Platform
sphinxjp.themes.gopher-0.2.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 616.3 kB

Release files / sphinxjp.themes.gopher-0.2.3.tar.gz

Download URL sphinxjp.themes.gopher-0.2.3.tar.gz
Size 598.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f61149f5b936d2b5a3e7826838ccff736a81f9c8c0fbd5dc9d979bb5d727042f
BLAKE2b-256 checksum
How to use checksums
172fa79c63b283f05be56ed07057a24bf2915d0884a722eadb2b67610f033bf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release files / sphinxjp.themes.gopher-0.2.3-py2.py3-none-any.whl

Download URL sphinxjp.themes.gopher-0.2.3-py2.py3-none-any.whl
Size 17.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2658175cd76e7927a31c6fde7a69fdf522e3eafc7dde5da737e00be293a5fe06
BLAKE2b-256 checksum
How to use checksums
a0a7d4e5eb9c49d076f804a22843aaff22a15d06360899428706bf62af573530
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page