Skip to content

Commit 84fa333

Browse files
committed
SEO: increase site visibility
Increase site visibility by providing a robots.txt file that points to a generated page sitemap. In addition this commit adds a verification code to be able to analyze it via Google Search Console. This does not track users or collect data, but only analyzes how well the page can be indext and found. Signed-off-by: Jonas Remmert <jremmert@gmx.net>
1 parent 090c5fc commit 84fa333

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

doc/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ sphinxcontrib-redoc
77
sphinx-autobuild
88
codespell
99
tox
10+
sphinx-sitemap==2.6.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google-site-verification: google70331152569d412b.html

doc/source/_static/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
3+
Sitemap: https://flownexus-lwm2m.github.io/flownexus/sitemap.xml

doc/source/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,21 @@
3232
'sphinx.ext.imgconverter',
3333
'sphinx.ext.todo',
3434
'sphinxcontrib.redoc',
35+
'sphinx_sitemap',
3536
]
3637

3738
exclude_patterns = []
3839

3940
html_theme = 'sphinx_book_theme'
4041
html_static_path = ['_static']
4142
html_favicon = '_static/flownexus_favicon.svg'
43+
html_baseurl = 'https://flownexus-lwm2m.github.io/flownexus/'
44+
45+
sitemap_url_scheme = "{link}"
46+
sitemap_locales = [None]
47+
# Add robots.txt so search engines can index the site
48+
html_extra_path = ['_static/robots.txt',
49+
'_static/google70331152569d412b.html']
4250

4351
# Single gray logo for both dark and light themes (not used)
4452
# html_logo = '_static/flownexus_logo_gray.svg'

0 commit comments

Comments
 (0)