docs/building-examples: show one example per page

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-08-09 13:27:13 +02:00
parent c4da134437
commit ec2473b83b
8 changed files with 25 additions and 18 deletions

View File

@ -72,23 +72,15 @@ Enter the directory that contains examples for Xilinx 7-Series FPGAs:
cd xc7
.. jinja:: xc7_counter_test
:file: templates/example.jinja
Then, follow the guidelines for each example:
.. jinja:: xc7_picosoc_demo
:file: templates/example.jinja
.. toctree::
.. jinja:: xc7_litex_demo
:file: templates/example.jinja
.. jinja:: xc7_linux_litex_demo
:file: templates/example.jinja
.. jinja:: xc7_timer
:file: templates/example.jinja
.. jinja:: xc7_pulse_width_led
:file: templates/example.jinja
xc7/counter_test
xc7/picosoc_demo
xc7/litex_demo
xc7/timer
xc7/pulse_width_led
QuickLogic EOS S3
@ -101,5 +93,8 @@ Enter the directory that contains examples for QuickLogic EOS S3:
cd eos-s3
.. jinja:: eos-s3_btn_counter
:file: templates/example.jinja
Then, follow the guidelines for each example:
.. toctree::
eos-s3/btn_counter

View File

@ -102,7 +102,7 @@ def handle_img(block):
ret = {}
ret['type'] = 'image'
ret['uri'] = '_static/' + os.path.join(*block['uri'].split('/')[3:])
ret['uri'] = '../_static/' + os.path.join(*block['uri'].split('/')[3:])
ret['align'] = block.get('align', 'center')
ret['width'] = block.get('width', '100%')

View File

@ -0,0 +1,2 @@
.. jinja:: eos-s3_btn_counter
:file: templates/example.jinja

View File

@ -0,0 +1,2 @@
.. jinja:: xc7_counter_test
:file: templates/example.jinja

2
docs/xc7/litex_demo.rst Normal file
View File

@ -0,0 +1,2 @@
.. jinja:: xc7_litex_demo
:file: templates/example.jinja

View File

@ -0,0 +1,2 @@
.. jinja:: xc7_picosoc_demo
:file: templates/example.jinja

View File

@ -0,0 +1,2 @@
.. jinja:: xc7_pulse_width_led
:file: templates/example.jinja

2
docs/xc7/timer.rst Normal file
View File

@ -0,0 +1,2 @@
.. jinja:: xc7_timer
:file: templates/example.jinja