Skip to content

Commit

Permalink
Merge pull request dipy#12 from maharshi-gor/bugfix/fri_09_29
Browse files Browse the repository at this point in the history
Bugfix/fri_09_29
  • Loading branch information
skoudoro authored Sep 30, 2023
2 parents 76e9803 + ac2c158 commit 761d10a
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 6 deletions.
4 changes: 4 additions & 0 deletions _static/css/common/calendar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.calendar {
width: 100%;
min-height: 400px;
}
1 change: 1 addition & 0 deletions _static/css/dipy.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

@import url("./common/variables.css");
@import url("./common/override.css");
@import url("./common/calendar.css");

/* Home CSS */
@import "./home/index.css";
10 changes: 10 additions & 0 deletions _static/js/dipy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
function subscriptionClick(email) {
const recipient = "[email protected]";
const subject = "subscription to dipy mailing list";

const mailtoLink = `mailto:${recipient}?subject=${encodeURIComponent(
subject
)}`;

window.location.href = mailtoLink;
}
19 changes: 19 additions & 0 deletions calendar.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.. _calendar:

========
Calendar
========

You can stay updated with upcoming DIPY_ events. Checkout our events calendar.

.. raw:: html

<iframe class="calendar" src="https://calendar.google.com/calendar/embed?src=uv8c50fkfvs529837k298ueqh0%40group.calendar.google.com&ctz=America%2FIndiana%2FIndianapolis" title="DIPY Calendar"></iframe>


Get Calendar
--------------
You can also add DIPY_ calendar to your google calendar with this `link. <https://calendar.google.com/calendar/u/0?cid=dXY4YzUwZmtmdnM1Mjk4MzdrMjk4dWVxaDBAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ>`_

.. include:: links_names.inc

32 changes: 26 additions & 6 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@
# Sphinx are currently 'default' and 'sphinxdoc'.
html_theme = "grg_sphinx_theme"

html_js_files = [
'js/dipy.js'
]

# The style sheet to use for HTML and HTML Help pages. A file of that name
# must exist either in Sphinx' static/ path, or in one of the custom paths
# given in html_static_path.
Expand Down Expand Up @@ -223,6 +227,10 @@
{
"name": "News",
"children": [
{
"name": "Calendar",
"url": "calendar",
},
{
"name": "Newsletters",
"url": "https://mail.python.org/mailman3/lists/dipy.python.org/",
Expand All @@ -245,7 +253,7 @@
{
"name": "Live Chat (Gitter)",
"url": "https://app.gitter.im/#/room/%23dipy_dipy:gitter.im",
"external": True
"link_type": "external"
},
{
"name": "Github Discussions",
Expand Down Expand Up @@ -335,16 +343,18 @@
},
{
"name": "Download",
"link": "installation"
"link": "https://dipy.org/installation",
"link_type": "inter"
},
{
"name": "Get Started",
"link": "https://dipy.org/contributors/"
"link": "https://dipy.org/contributors/",
"link_type": "inter"
},
{
"name": "Tutorials",
"link": "https://docs.dipy.org/tutorials/",
"link_type": "external"
"link_type": "inter"
},
{
"name": "Videos",
Expand Down Expand Up @@ -409,9 +419,12 @@
"value": "core-dev",
"label": "Core Developers"
}],
"contributors_details": contributors
"contributors_details": contributors,
"subscribe_callback": "subscriptionClick"
}



with open('context/context.toml', 'rb') as f:
config = tomllib.load(f)

Expand Down Expand Up @@ -455,7 +468,14 @@
#html_use_smartypants = True

# Custom sidebar templates, maps document names to template names.
#html_sidebars = {'index': 'indexsidebar.html'}
html_sidebars = {'blog': [
'ablog/postcard.html', 'ablog/recentposts.html',
'ablog/tagcloud.html', 'ablog/categories.html',
'ablog/archives.html', ],
'posts/**': [
'ablog/postcard.html', 'ablog/recentposts.html',
'ablog/tagcloud.html', 'ablog/categories.html',
'ablog/archives.html', ]}

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down

0 comments on commit 761d10a

Please sign in to comment.