Skip to content

Commit

Permalink
Updated docs style
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Jun 11, 2020
1 parent d92ef51 commit 1ed8680
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 25 deletions.
28 changes: 28 additions & 0 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
h1,
h2,
.navbar-nav > .active > .nav-link {
color: #333333 !important;
}

a.reference.internal,
a.reference.internal > span {
color: #555555 !important;
}

.pre,
.sig-prename.descclassname {
color: #858585;
}

a.headerlink,
.sig-name.descname {
color: #5687b4;
}

a.headerlink:hover {
background-color: #5687b4;
}

main img {
margin: 30px 0;
}
8 changes: 8 additions & 0 deletions docs/source/_static/revitron-large.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 8 additions & 17 deletions docs/source/_static/revitron.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/source/_templates/package.rst_t
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{%- if is_namespace %}
{{- [pkgname, "namespace"] | join(" ") | e | heading }}
{% else %}
{{- "API Reference" | e | heading }}
{{- "Revitron API Reference" | e | heading }}
{% endif %}

{%- if modulefirst and not is_namespace %}
Expand Down
2 changes: 2 additions & 0 deletions docs/source/concept.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Concept
=======
11 changes: 9 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@
html_logo = "_static/revitron.svg"

html_theme_options = {
"github_url": "https://github.com/revitron/revitron"
"external_links": [
{"url": "https://github.com/revitron/revitron-ui", "name": "Revitron UI"},
{"url": "https://github.com/revitron/revitron", "name": "GitHub"}
]
}

html_context = {
Expand All @@ -84,4 +87,8 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ['_static']

html_css_files = [
'custom.css',
]
9 changes: 6 additions & 3 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ Revitron

A python wrapper for the Revit API to be used as a pyRevit extension.

.. image:: _static/revitron-large.svg

.. toctree::
:maxdepth: 4

:maxdepth: 2

concept
install
revitron
GitHub <https://github.com/revitron/revitron>


Indices and tables
------------------
Expand Down
2 changes: 2 additions & 0 deletions docs/source/install.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Install
=======
4 changes: 2 additions & 2 deletions docs/source/revitron.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
API Reference
=============
Revitron API Reference
======================

.. automodule:: revitron
:members:
Expand Down

0 comments on commit 1ed8680

Please sign in to comment.