Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website edits #582

Merged
merged 11 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,37 @@ td a {
display: block;
}

table tr:nth-child(even){background-color: #f2f2f2;}

table tr:hover {background-color: #ddd;}

th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #04AA6D;
color: white;
}

html[data-theme="light"] {
/* whatever you want to change */
background: white;
}

/* anything related to the dark theme */
html[data-theme="dark"] {
/* whatever you want to change */
background: black;
}

html[data-theme="dark"] table.data tbody tr:nth-child(odd) {
background-color: #2e2e2e; /* Darker gray */
}

html[data-theme="dark"] table.data tbody tr:nth-child(even) {
background-color: #3e3e3e; /* Lighter gray */
}

html[data-theme="light"] table.data tbody tr:nth-child(odd) {
background-color: #eeeeee; /* Darker gray */
}

html[data-theme="light"] table.data tbody tr:nth-child(even) {
background-color: #f2f2f2; /* Lighter gray */
}
1 change: 1 addition & 0 deletions docs/source/_static/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async function fetch_JSON_file(url) {
function create_table(json_data) {
const section = document.getElementById("network-statistics")
const table = document.createElement('table');
table.setAttribute( "class", "data" );
const table_header = document.createElement('thead')
const table_body = document.createElement('tbody')

Expand Down
112 changes: 0 additions & 112 deletions docs/source/about.rst

This file was deleted.

10 changes: 0 additions & 10 deletions docs/source/api/recipes.rst

This file was deleted.

12 changes: 0 additions & 12 deletions docs/source/api/tutorials.rst

This file was deleted.

2 changes: 2 additions & 0 deletions docs/source/api/tutorials/case_studies.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

############
Case studies
############
Expand Down
4 changes: 2 additions & 2 deletions docs/source/api/tutorials/focus.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _focus_tutorials:
:orphan:

################
Focus tutorials
Expand All @@ -18,5 +18,5 @@ Focus tutorials

.. seealso::

This is now too easy and you want to dive deeper into some features of XGI?
Is this too easy and you want to dive deeper into some features of XGI?
Go to the `In-depth Tutorials <in_depth.html>`_.
2 changes: 1 addition & 1 deletion docs/source/api/tutorials/getting_started.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _xgi_in_x_minutes:
:orphan:

###############
Getting started
Expand Down
3 changes: 1 addition & 2 deletions docs/source/api/tutorials/in_depth.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.. _indepth_tutorials:

:orphan:

##################
In Depth tutorials
Expand Down
4 changes: 1 addition & 3 deletions docs/source/reference.rst → docs/source/api_reference.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _reference:

**************
API Reference
**************
Expand All @@ -22,7 +20,7 @@ XGI is organized into the following subpackages:

.. note::

This page describes release |version| of XGI. Find out more in the `Release notes <https://github.com/xgi-org/xgi/releases>`_ about this and previous releases.
This page describes release |version| of XGI. Find out more about this release and previous releases in the `release notes <https://github.com/xgi-org/xgi/releases>`_.

.. toctree::
:maxdepth: 2
Expand Down
4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,17 @@

# 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

# documentation.
html_theme_options = {
"navbar_end": [
"theme-switcher",
"navbar-icon-links",
], # Place the social links at the end of the navbar
"icon_links": [
{
"name": "GitHub",
"url": "https://xgi.readthedocs.io/",
"url": "https://github.com/xgi-org/xgi",
"icon": "fab fa-github-square", # Font Awesome icon
},
{
Expand Down
6 changes: 2 additions & 4 deletions docs/source/contribute.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.. _contribute:

****************
***********
Development
****************
***********


Contribute
Expand Down
Loading
Loading