Skip to content

Commit

Permalink
Response to review
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed Sep 9, 2024
1 parent c54d296 commit d1eb184
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
9 changes: 9 additions & 0 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,13 @@ html[data-theme="light"] table.data tbody tr:nth-child(odd) {

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

/* Fixed width for the navbar items */
.bd-header ul.navbar-nav {
width: 600px;
}
/* Remove whitespace to the right of the xgi logo */
.bd-header .navbar-header-items__start {
width: 100px;
}
20 changes: 15 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

import os
import sys
from datetime import date
from datetime import date, datetime

import requests

sys.path.insert(0, os.path.abspath("."))
sys.path.append(os.path.join(os.path.dirname(__name__), "xgi"))
Expand Down Expand Up @@ -66,9 +68,8 @@
html_css_files = ["custom.css"]
html_js_files = ["table.js"]
html_favicon = "_static/x.ico"

# If your documentation needs a minimal Sphinx version, state it here.
needs_sphinx = "1.3"
needs_sphinx = "6.2.1"

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand Down Expand Up @@ -117,9 +118,18 @@

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
# today = ''
r = requests.get("https://api.github.com/repos/xgi-org/xgi/releases/latest")

if r.ok:
release_date = (
datetime.fromisoformat(r.json()["published_at"]).date().strftime("%B %d, %Y")
)
else:
raise Exception(f"Error: HTTP response {r.status_code}")

today = release_date
# Else, today_fmt is used as the format for a strftime call.
today_fmt = "%B %d, %Y"
# today_fmt = "%B %d, %Y"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
Binary file modified logo/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logo/logo_tight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d1eb184

Please sign in to comment.