8000 Fix titles redux by lurch · Pull Request #1971 · raspberrypi/documentation · GitHub
[go: up one dir, main page]

Skip to content

Fix titles redux #1971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your a 8000 ccount

Merged
merged 1 commit into from
Aug 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
4 changes: 2 additions & 2 deletions jekyll-assets/_includes/head.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ page.title }}</title>
<meta property="og:title" content="{{ page.title }}">
<title>{{ site.title }} - {{ page.title }}</title>
<meta property="og:title" content="{{ site.title }} - {{ page.title }}">
<meta property="og:description" content="The official documentation for Raspberry Pi computers and microcontrollers">
<meta property="og:url" content="https://www.raspberrypi.org{{ page.url | relative_url }}">
<meta property="og:image" content="https://www.raspberrypi.org{{ "/images/opensocial.png" | relative_url }}">
Expand Down
2 changes: 1 addition & 1 deletion scripts/create_build_adoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
out_fh.write(""":parentdir: {}
:page-layout: docs
:includedir: {}
:doctitle: Raspberry Pi Documentation - {}
:doctitle: {}

include::{{includedir}}/{{parentdir}}/{}[]
""".format(output_path, src_dir, index_title, adoc_filename))
4 changes: 2 additions & 2 deletions scripts/create_jekyll_ninjabuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def scan_adoc(adoc_filename, apparent_filename):
output_dir = sys.argv[3]
output_ninjabuild = sys.argv[4]

category_pages = set([('index.adoc', 'Raspberry Pi Documentation')])
category_pages = set([('index.adoc', 'Index')])
doc_pages = set()
page_images = set()

Expand All @@ -50,7 +50,7 @@ def scan_adoc(adoc_filename, apparent_filename):
assert ('path' in tab) == ('subitems' in tab)
if 'path' in tab:
# category (boxes) page
category_pages.add((os.path.join(tab['path'], 'index.adoc'), 'Raspberry Pi Documentation - {}'.format(tab['title'])))
category_pages.add((os.path.join(tab['path'], 'index.adoc'), tab['title']))
# build_adoc
for subitem in tab['subitems']:
if 'subpath' in subitem:
Expand Down
0