Update and fix project navigation
* Header titles & links * Footer links * Feedback button
This commit is contained in:
parent
599aefdd73
commit
4bad051494
|
@ -11,18 +11,7 @@ window.onload = function() {
|
||||||
link.classList.add("muted-link");
|
link.classList.add("muted-link");
|
||||||
link.classList.add("github-issue-link");
|
link.classList.add("github-issue-link");
|
||||||
link.text = "Give feedback";
|
link.text = "Give feedback";
|
||||||
link.href = (
|
link.href = ("https://bugs.launchpad.net/subiquity/+filebug");
|
||||||
github_url
|
|
||||||
+ "/issues/new?"
|
|
||||||
+ "title=docs%3A+TYPE+YOUR+QUESTION+HERE"
|
|
||||||
+ "&body=*Please describe the question or issue you're facing with "
|
|
||||||
+ `"${document.title}"`
|
|
||||||
+ ".*"
|
|
||||||
+ "%0A%0A%0A%0A%0A"
|
|
||||||
+ "---"
|
|
||||||
+ "%0A"
|
|
||||||
+ `*Reported+from%3A+${location.href}*`
|
|
||||||
);
|
|
||||||
link.target = "_blank";
|
link.target = "_blank";
|
||||||
|
|
||||||
const div = document.createElement("div");
|
const div = document.createElement("div");
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
|
|
||||||
{% if github_issues %}
|
{% if github_issues %}
|
||||||
<div class="issue-github">
|
<div class="issue-github">
|
||||||
<a class="muted-link" href="{{ github_url }}/issues/new?title=doc%3A+ADD+A+TITLE&body=DESCRIBE+THE+ISSUE%0A%0A---%0ADocument: {{ pagename }}{{ page_source_suffix }}">Open a GitHub issue for this page</a>
|
<a class="muted-link" href="https://bugs.launchpad.net/subiquity/+filebug">Open a Launchpad issue for this documentation</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<li>
|
<li>
|
||||||
<a class="p-logo" href="https://{{ product_page }}" aria-current="page">
|
<a class="p-logo" href="https://{{ product_page }}" aria-current="page">
|
||||||
<img src="{{ pathto(product_tag,1) }}" alt="Logo" class="p-logo-image">
|
<img src="{{ pathto(product_tag,1) }}" alt="Logo" class="p-logo-image">
|
||||||
<div class="p-logo-text p-heading--4">{{ project }}
|
<div class="p-logo-text p-heading--4">{{ project.title() }}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -15,7 +15,7 @@ import datetime
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
# Product name
|
# Product name
|
||||||
project = 'Ubuntu Install Guide'
|
project = 'Ubuntu installation'
|
||||||
author = 'Canonical Group Ltd'
|
author = 'Canonical Group Ltd'
|
||||||
|
|
||||||
# Uncomment if your product uses release numbers
|
# Uncomment if your product uses release numbers
|
||||||
|
@ -41,7 +41,7 @@ copyright = '%s, %s' % (datetime.date.today().year, author)
|
||||||
# The URL of the documentation output
|
# The URL of the documentation output
|
||||||
ogp_site_url = 'https://canonical-subiquity.readthedocs-hosted.com/'
|
ogp_site_url = 'https://canonical-subiquity.readthedocs-hosted.com/'
|
||||||
# The documentation website name (usually the same as the product name)
|
# The documentation website name (usually the same as the product name)
|
||||||
ogp_site_name = project
|
ogp_site_name = 'Ubuntu Installation Guide'
|
||||||
# An image or logo that is used in the preview
|
# An image or logo that is used in the preview
|
||||||
ogp_image = 'https://assets.ubuntu.com/v1/253da317-image-document-ubuntudocs.svg'
|
ogp_image = 'https://assets.ubuntu.com/v1/253da317-image-document-ubuntudocs.svg'
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ html_favicon = '.sphinx/_static/favicon.png'
|
||||||
html_context = {
|
html_context = {
|
||||||
|
|
||||||
# Change to the link to your product website (without "https://")
|
# Change to the link to your product website (without "https://")
|
||||||
'product_page': 'documentation.ubuntu.com',
|
'product_page': 'ubuntu.com/download',
|
||||||
|
|
||||||
# Add your product tag to ".sphinx/_static" and change the path
|
# Add your product tag to ".sphinx/_static" and change the path
|
||||||
# here (start with "_static"), default is the circle of friends
|
# here (start with "_static"), default is the circle of friends
|
||||||
|
@ -62,7 +62,7 @@ html_context = {
|
||||||
# Change to the discourse instance you want to be able to link to
|
# Change to the discourse instance you want to be able to link to
|
||||||
# using the :discourse: metadata at the top of a file
|
# using the :discourse: metadata at the top of a file
|
||||||
# (use an empty value if you don't want to link)
|
# (use an empty value if you don't want to link)
|
||||||
'discourse': 'https://discourse.ubuntu.com',
|
'discourse': 'https://discourse.ubuntu.com/c/foundations/',
|
||||||
|
|
||||||
# Change to the GitHub info for your project
|
# Change to the GitHub info for your project
|
||||||
'github_url': 'https://github.com/canonical/subiquity',
|
'github_url': 'https://github.com/canonical/subiquity',
|
||||||
|
@ -76,7 +76,7 @@ html_context = {
|
||||||
|
|
||||||
# Change to an empty value if your GitHub repo doesn't have issues enabled.
|
# Change to an empty value if your GitHub repo doesn't have issues enabled.
|
||||||
# This will disable the feedback button and the issue link in the footer.
|
# This will disable the feedback button and the issue link in the footer.
|
||||||
'github_issues': '',
|
'github_issues': 'https://bugs.launchpad.net/subiquity',
|
||||||
|
|
||||||
# Controls the existence of Previous / Next buttons at the bottom of pages
|
# Controls the existence of Previous / Next buttons at the bottom of pages
|
||||||
# Valid options: none, prev, next, both
|
# Valid options: none, prev, next, both
|
||||||
|
|
Loading…
Reference in New Issue