-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from sony/fix_docs
Update __init__.py
- Loading branch information
Showing
8 changed files
with
567 additions
and
321 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,38 @@ | ||
{# this template is used by pdoc's integrated web server to display runtime errors. #} | ||
{% extends "frame.html.jinja2" %} | ||
{% block title %}{{ error }}{% endblock %} | ||
{% block style %} | ||
<style>{% include "resources/bootstrap-reboot.min.css" %}</style> | ||
<style> | ||
body { | ||
padding: 2rem; | ||
max-width: 54rem; | ||
} | ||
footer { | ||
text-align: right; | ||
} | ||
h1 { | ||
margin-bottom: 2rem; | ||
} | ||
footer svg { | ||
max-width: 70px; | ||
max-height: 35px; | ||
transition: all 200ms; | ||
filter: grayscale(100%); | ||
} | ||
footer svg:hover { | ||
filter: grayscale(0%); | ||
} | ||
</style> | ||
{% endblock %} | ||
{% block body %} | ||
<h1>{{ error }}</h1> | ||
<pre>{{ details }}</pre> | ||
<hr> | ||
<footer><a title="built with pdoc {{ __version__ }}" | ||
href="https://pdoc.dev">{% include 'resources/pdoc-logo.svg' %}</a></footer> | ||
{% endblock %} |
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,45 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="generator" content="pdoc {{ __version__ }}"/> | ||
<title>{% block title %}{% endblock %}</title> | ||
{% block favicon %} | ||
{% if favicon %} | ||
<link rel="icon" href="{{ favicon }}"/> | ||
{% endif %} | ||
{% endblock %} | ||
{% block head %}{% endblock %} | ||
{% filter minify_css | indent %} | ||
{% block style %} | ||
<style>{% include "resources/bootstrap-reboot.min.css" %}</style> | ||
<style>/*! syntax-highlighting.css */{% include "syntax-highlighting.css" %}</style> | ||
{# | ||
The style_pdoc, style_theme, style_layout, and style_content Jinja2 blocks are deprecated and will be | ||
removed in a future release. Custom templates should either provide alternatives for the specific CSS files, | ||
or append their own styles by providing `custom.css` (see examples/custom-template/). | ||
#} | ||
{% block style_pdoc %} | ||
{% block style_theme %}<style>/*! theme.css */{% include "theme.css" %}</style>{% endblock %} | ||
{% block style_layout %}<style>/*! layout.css */{% include "layout.css" %}</style>{% endblock %} | ||
{% block style_content %}<style>/*! content.css */{% include "content.css" %}</style>{% endblock %} | ||
{# Use this file in your custom template directory to add additional CSS styling: #} | ||
<style>/*! custom.css */{% include "custom.css" %}</style> | ||
{% endblock %} | ||
{% endblock %} | ||
{% endfilter %} | ||
{% if math %}{% include "math.html.jinja2" %}{% endif %} | ||
{% if mermaid %}{% include "mermaid.html.jinja2" %}{% endif %} | ||
</head> | ||
<body> | ||
{% block body %} | ||
<nav class="pdoc"> | ||
<label id="navtoggle" for="togglestate" class="pdoc-button">{% include 'resources/navtoggle.svg' %}</label> | ||
<input id="togglestate" type="checkbox" aria-hidden="true" tabindex="-1"> | ||
<div>{% block nav %}{% endblock %}</div> | ||
</nav> | ||
{% block content %}{% endblock %} | ||
{% endblock body %} | ||
</body> | ||
</html> |
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,74 @@ | ||
{# this template is used to render the top-level index.html. #} | ||
{% if root_module_name %} | ||
{# | ||
If there is one common parent module for all documented modules, redirect there immediately. | ||
This makes a package's `__init__.py` the main entrypoint by default. | ||
A custom template could override this by setting root_module_name to false before `{% extend ... %}`. | ||
#} | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="refresh" content="0; url=./{{ root_module_name.replace(".","/") }}.html"/> | ||
</head> | ||
</html> | ||
{% else %} | ||
{% extends "frame.html.jinja2" %} | ||
{% block title %}Module List – pdoc {{ __version__ }}{% endblock %} | ||
{% block style %} | ||
{{ super() | safe }} | ||
<style> | ||
header.pdoc { | ||
display: flex; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
} | ||
header.pdoc img { | ||
max-width: 200px; | ||
max-height: 75px; | ||
padding-right: 2rem; | ||
} | ||
header.pdoc input[type=search] { | ||
outline-offset: 0; | ||
font-size: 1.5rem; | ||
min-width: 60%; | ||
flex-grow: 1; | ||
padding-left: .5rem; | ||
margin: 1.75rem 0; | ||
} | ||
</style> | ||
{% endblock %} | ||
{% block nav %} | ||
<h2>Available Modules</h2> | ||
<ul> | ||
{% for submodule in all_modules if "._" not in submodule and not submodule.startswith("_") %} | ||
<li><a href="{{ submodule.replace(".","/") }}.html">{{ submodule }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock %} | ||
{% block content %} | ||
<header class="pdoc"> | ||
{% block logo %} | ||
{% if logo %} | ||
{% if logo_link %}<a href="{{ logo_link }}">{% endif %} | ||
<img src="{{ logo }}" alt="project logo"/> | ||
{% if logo_link %}</a>{% endif %} | ||
{% else %} | ||
<a href="https://pdoc.dev"> | ||
<img src="data:image/svg+xml,{% filter urlencode %}{% include "resources/pdoc-logo.svg" %}{% endfilter %}" | ||
alt="pdoc"/> | ||
</a> | ||
{% endif %} | ||
{% endblock %} | ||
{% if search %} | ||
<input type="search" placeholder="Search API Documentation..." aria-label="search box"> | ||
{% endif %} | ||
</header> | ||
<main class="pdoc"></main> | ||
{% if search %} | ||
{% include "search.html.jinja2" %} | ||
{% endif %} | ||
{% endblock %} | ||
{% endif %} |
Oops, something went wrong.