Skip to content

Commit

Permalink
add dracula theme
Browse files Browse the repository at this point in the history
  • Loading branch information
PengiCoder committed Sep 2, 2024
1 parent 59297c3 commit 6b8b1a1
Show file tree
Hide file tree
Showing 23 changed files with 214 additions and 0 deletions.
Empty file added pengios-wiki/docs/getstarted.md
Empty file.
Binary file added pengios-wiki/docs/img/favicon.ico
Binary file not shown.
12 changes: 12 additions & 0 deletions pengios-wiki/dracula/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends "base.html" %}

{% block content %}
<section class="p-md-5 section-content">
<article>
<p></p>
<h1>404</h1>
<hr>
<p><strong>Page not found</strong></p>
</article>
</section>
{% endblock %}
24 changes: 24 additions & 0 deletions pengios-wiki/dracula/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
__version__ = "1.0.7"

__author__ = 'Fernando Celmer <[email protected]>'
__copyright__ = """MIT License
Copyright (c) 2024 Dracula Theme
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE."""
109 changes: 109 additions & 0 deletions pengios-wiki/dracula/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<!doctype html>
<html lang="en">

<head>
{%- block htmltitle %}
<title>{% if page and page.title and not page.is_homepage %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
{%- endblock %}

{%- block site_meta %}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

{% if page and page.is_homepage %}<meta name="description" content="{{ config['site_description'] }}">{% endif %}
{% if page and page.canonical_url %}<link rel="canonical" href="{{ page.canonical_url }}">{% endif %}
{% if config.site_author %}<meta name="author" content="{{ config.site_author }}">{% endif %}
{%- endblock %}

{%- block styles %}

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">

{%- if config.theme.highlight_css %}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/{{config.theme.highlight_css|default('atom-one-dark.min.css')}}">
{% else %}
<link rel="stylesheet" href="{{ 'assets/css/darcula-highlight.min.css'|url }}">
{%- endif %}

<link rel="stylesheet" href="{{ 'assets/css/bootstrap.min.css'|url }}">
<link rel="stylesheet" href="{{ 'assets/css/dracula-ui.min.css'|url }}">
<link rel="stylesheet" href="{{ 'assets/css/mkdocs.min.css'|url }}">

{%- for path in extra_css %}
<link href="{{ path }}" rel="stylesheet">
{%- endfor %}

{% if config.theme.favicon %}
<link rel="icon" type="image/x-icon" href="{{ config.theme.favicon|url }}">
{% else %}
<link rel="icon" type="image/x-icon" href="{{ 'assets/img/favicon.ico'|url }}">
{% endif %}

{%- endblock %}

{%- block libs %}

{%- if config.theme.highlightjs %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/{{config.theme.highlight_js|default('highlight.min.js')}}"></script>

{%- for lang in config.theme.hljs_languages %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/languages/{{lang}}.min.js"></script>
{%- endfor %}
<script>hljs.initHighlightingOnLoad();</script>
{%- endif %}

{%- endblock %}

</head>

<body class="drac-bg-black-secondary drac-text-grey-ternary drac-text drac-scrollbar-purple">

<main class="d-flex">

<!-- block sidebar -->
{%- block sidebar %}
{% include "/modules/sidebar.html" %}
{%- endblock %}
<!-- endblock -->

<nav class="divider drac-bg-purple-cyan"></nav>

<div class="content">
<!-- block header -->
{%- block header %}
{% include "/modules/header.html" %}
{%- endblock %}
<!-- endblock -->

<!-- block content -->
{%- block content %}
{% include "/modules/content.html" %}
{%- endblock %}
<!-- endblock -->

<!-- block footer -->
{%- block footer %}
{% include "/modules/footer.html" %}
{%- endblock %}
<!-- endblock -->
</div>

</main>

{%- block scripts %}

<script>var base_url = '{{ base_url }}';</script>
<script src="{{ 'assets/js/jquery-3.3.1.slim.min.js'|url }}"></script>
<script src="{{ 'assets/js/bootstrap.bundle.min.js'|url }}"></script>
<script src="{{ 'assets/js/mkdocs.js'|url }}"></script>

{%- for path in extra_javascript %}
<script src="{{ path }}" defer></script>
{%- endfor %}

{%- endblock %}

</body>

</html>
6 changes: 6 additions & 0 deletions pengios-wiki/dracula/css/bootstrap.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pengios-wiki/dracula/css/bootstrap.min.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pengios-wiki/dracula/css/darcula-highlight.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pengios-wiki/dracula/css/dracula-ui.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pengios-wiki/dracula/css/dracula-ui.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pengios-wiki/dracula/css/mkdocs.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added pengios-wiki/dracula/img/dracula.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6b8b1a1

Please sign in to comment.