Skip to content

Commit

Permalink
wip: add tabs for the renderer from scratch page
Browse files Browse the repository at this point in the history
  • Loading branch information
baylej committed Jul 27, 2019
1 parent 80a8368 commit 3b877da
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import sys
import os
import shlex

extensions = []
extensions = ['sphinx_tabs.tabs']
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
Expand Down
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/djungelorm/sphinx-tabs/releases/download/v1.1.11/sphinx-tabs-1.1.11.tar.gz
41 changes: 40 additions & 1 deletion doc/src/renderer-from-scratch.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,43 @@
Creating a map renderer from scratch
====================================

Blah.
Blah.

.. tabs::

.. code-tab:: c SDL 2

void SDL_renderer() {}

.. code-tab:: c Allegro 5

void Allegro5_renderer() {}

.. code-tab:: c raylib

void raylib_renderer() {}

.. code-tab:: c++ SFML

void SFML::renderer() {}


Testing the tab group functionality:

.. tabs::

.. code-tab:: c SDL 2

void SDL_tex_loader() {}

.. code-tab:: c Allegro 5

void Allegro5_tex_loader() {}

.. code-tab:: c raylib

void raylib_tex_loader() {}

.. code-tab:: c++ SFML

void SFML::tex_loader() {}

0 comments on commit 3b877da

Please sign in to comment.