Commits

Aleš Erjavec  committed 5c0dd2e

Customize sphinx documentation theme.

  • Participants
  • Parent commits 7bafffd

Comments (0)

Files changed (13)

File docs/rst/conf.py

 
 # The theme to use for HTML and HTML Help pages.  Major themes that come with
 # Sphinx are currently 'default' and 'sphinxdoc'.
-html_theme = 'nature'
+html_theme = 'bio'
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the
 #html_theme_options = {}
 
 # Add any paths that contain custom themes here, relative to this directory.
-#html_theme_path = []
+html_theme_path = ["sphinx"]
 
 # The name for this set of Sphinx documents.  If None, it defaults to
 # "<project> v<release> documentation".

File docs/rst/sphinx/bio/static/images/1.png

Added
New image

File docs/rst/sphinx/bio/static/images/10.png

Added
New image

File docs/rst/sphinx/bio/static/images/2.png

Added
New image

File docs/rst/sphinx/bio/static/images/3.png

Added
New image

File docs/rst/sphinx/bio/static/images/4.png

Added
New image

File docs/rst/sphinx/bio/static/images/5.png

Added
New image

File docs/rst/sphinx/bio/static/images/6.png

Added
New image

File docs/rst/sphinx/bio/static/images/7.png

Added
New image

File docs/rst/sphinx/bio/static/images/8.png

Added
New image

File docs/rst/sphinx/bio/static/images/9.png

Added
New image

File docs/rst/sphinx/bio/static/orange-bio.css

+@import url("nature.css");
+
+
+/* Stamped lists for enumerated descriptions of widgets
+   (using stamp-list rst class)
+*/
+
+.stamp-list {
+    padding-left:20px;
+}
+
+.stamp-list li:nth-child(1) {
+	list-style-image: url(./images/1.png);
+}
+
+.stamp-list li:nth-child(2) {
+	list-style-image: url(./images/2.png)
+}
+
+.stamp-list li:nth-child(3) {
+	list-style-image: url(./images/3.png)
+}
+
+.stamp-list li:nth-child(4) {
+	list-style-image: url(./images/4.png)
+}
+
+.stamp-list li:nth-child(5) {
+	list-style-image: url(./images/5.png)
+}
+
+.stamp-list li:nth-child(6) {
+	list-style-image: url(./images/6.png)
+}
+
+.stamp-list li:nth-child(7) {
+	list-style-image: url(./images/7.png)
+}
+
+.stamp-list li:nth-child(8) {
+	list-style-image: url(./images/8.png)
+}
+
+.stamp-list li:nth-child(9) {
+	list-style-image: url(./images/9.png)
+}
+
+.stamp-list li:nth-child(10) {
+	list-style-image: url(./images/10.png)
+}
+
+/* Widget icon styling */
+table.widget-catalog-table img,
+img.widget-icon,
+table.widget-catalog-table object,
+object.widget-icon {
+    border-radius: 100%;
+    padding: 6px;
+    box-shadow: 0px 0px 5px #888888;
+}
+
+/* Bioinformatics widget category */
+table.widget-catalog-table.widget-category-bioinformatics img,
+img.widget-category-bioinformatics.widget-icon {
+    background: #DFECB0;
+    background: radial-gradient(#E6ECCE 0%, #E5ECCC 50%, #DFECB3 100%);
+}

File docs/rst/sphinx/bio/theme.conf

+[theme]
+inherit = nature
+stylesheet = orange-bio.css
+
+[options]
+collapsiblesidebar = false