docs list all examples on one page

This commit is contained in:
Gabor Kiss-Vamosi
2021-06-14 23:13:22 +02:00
parent 8691611de2
commit 25acaf45ca
6 changed files with 481 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import sys
import os
import subprocess
import re
import example_list as ex
langs = ['en']
@@ -25,6 +26,10 @@ def cmd(s):
status, br = subprocess.getstatusoutput("git branch | grep '*'")
_, gitcommit = subprocess.getstatusoutput("git rev-parse HEAD")
br = re.sub('\* ', '', br)
# Generate the list of examples
ex.exec()
urlpath = re.sub('release/', '', br)
# Be sure the github links point to the right branch