Bug 1643034 - Improve the top left presentation of the doc r=championshuttler

* shorter title
* remove versions display (with 4 weeks cycle, less relevant)
* display the firefox wordmark https://searchfox.org/mozilla-central/source/browser/branding/nightly/content/firefox-wordmark.svg

Differential Revision: https://phabricator.services.mozilla.com/D78074
This commit is contained in:
Sylvestre Ledru 2020-06-03 19:29:11 +00:00
Родитель b8d9ae4413
Коммит 47b6e279cf
1 изменённых файлов: 2 добавлений и 19 удалений

Просмотреть файл

@ -5,11 +5,8 @@
from __future__ import absolute_import, unicode_literals
import os
import re
import sys
from datetime import datetime
from recommonmark.transform import AutoStructify
# Set up Python environment to load build system packages.
@ -66,22 +63,8 @@ templates_path = ['_templates']
source_suffix = '.rst'
source_suffix = ['.rst', '.md']
master_doc = 'index'
project = u'Firefox Source Tree Docs'
year = datetime.now().year
# Grab the version from the source tree's milestone.
# FUTURE Use Python API from bug 941299.
with open(os.path.join(topsrcdir, 'config', 'milestone.txt'), 'rt') as fh:
for line in fh:
line = line.strip()
if not line or line.startswith('#'):
continue
release = line
break
version = re.sub(r'[ab]\d+$', '', release)
project = u'Firefox Source Docs'
html_logo = u'../browser/branding/nightly/content/firefox-wordmark.svg'
exclude_patterns = ['_build', '_staging', '_venv']
pygments_style = 'sphinx'