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:
21
docs/conf.py
21
docs/conf.py
@@ -5,11 +5,8 @@
|
|||||||
from __future__ import absolute_import, unicode_literals
|
from __future__ import absolute_import, unicode_literals
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
from recommonmark.transform import AutoStructify
|
from recommonmark.transform import AutoStructify
|
||||||
|
|
||||||
# Set up Python environment to load build system packages.
|
# Set up Python environment to load build system packages.
|
||||||
@@ -66,22 +63,8 @@ templates_path = ['_templates']
|
|||||||
source_suffix = '.rst'
|
source_suffix = '.rst'
|
||||||
source_suffix = ['.rst', '.md']
|
source_suffix = ['.rst', '.md']
|
||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
project = u'Firefox Source Tree Docs'
|
project = u'Firefox Source Docs'
|
||||||
year = datetime.now().year
|
html_logo = u'../browser/branding/nightly/content/firefox-wordmark.svg'
|
||||||
|
|
||||||
# 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)
|
|
||||||
|
|
||||||
exclude_patterns = ['_build', '_staging', '_venv']
|
exclude_patterns = ['_build', '_staging', '_venv']
|
||||||
pygments_style = 'sphinx'
|
pygments_style = 'sphinx'
|
||||||
|
|||||||
Reference in New Issue
Block a user