-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fixes #63 - fixes #12 - work-around for executablebooks/sphinx-book-theme#182
- Loading branch information
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from os import path | ||
|
||
def setup(app): | ||
app.add_html_theme('prem_theme', path.abspath(path.dirname(__file__))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% extends "sphinx_book_theme/layout.html" %} | ||
{% block extrahead %} | ||
<meta property="og:site_name" content="The State of Open Source AI" /> | ||
<meta property="og:title" content="{{ title }}" /> | ||
<meta property="og:type" content="book" /> | ||
<meta property="og:image" content="https://static.premai.io/book/book-cover.jpg" /> | ||
<meta property="og:url" content="https://book.premai.io/state-of-open-source-ai/{{ '' if pagename == 'index' else pagename }}" /> | ||
<meta property="og:description" content="Clarity in the current fast-paced mess of Open Source innovation" /> | ||
<meta property="og:locale" content="en_GB" /> | ||
<meta property="og:book:author" content="Prem" /> | ||
{%- if last_updated %} | ||
<meta property="og:book:release_date" content="{{ last_updated }}" /> | ||
{%- endif %} | ||
<meta property="og:book:tag" content="open-source" /> | ||
<meta property="og:book:tag" content="AI" /> | ||
<meta property="og:book:tag" content="book" /> | ||
<meta property="og:book:tag" content="ML" /> | ||
<meta property="og:book:tag" content="MLOps" /> | ||
<meta property="og:book:tag" content="Jupyter-Book" /> | ||
{{ super() }} | ||
{% endblock extrahead %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[theme] | ||
inherit = sphinx_book_theme |