diff --git a/_static/css/common/calendar.css b/_static/css/common/calendar.css
new file mode 100644
index 00000000..2979c81b
--- /dev/null
+++ b/_static/css/common/calendar.css
@@ -0,0 +1,4 @@
+.calendar {
+ width: 100%;
+ min-height: 400px;
+}
\ No newline at end of file
diff --git a/_static/css/dipy.css b/_static/css/dipy.css
index 8646f6c9..307819f6 100644
--- a/_static/css/dipy.css
+++ b/_static/css/dipy.css
@@ -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";
\ No newline at end of file
diff --git a/_static/js/dipy.js b/_static/js/dipy.js
new file mode 100644
index 00000000..a52b88e3
--- /dev/null
+++ b/_static/js/dipy.js
@@ -0,0 +1,10 @@
+function subscriptionClick(email) {
+ const recipient = "dipy@python.org";
+ const subject = "subscription to dipy mailing list";
+
+ const mailtoLink = `mailto:${recipient}?subject=${encodeURIComponent(
+ subject
+ )}`;
+
+ window.location.href = mailtoLink;
+}
diff --git a/calendar.rst b/calendar.rst
new file mode 100644
index 00000000..fe0eb83d
--- /dev/null
+++ b/calendar.rst
@@ -0,0 +1,19 @@
+.. _calendar:
+
+========
+Calendar
+========
+
+You can stay updated with upcoming DIPY_ events. Checkout our events calendar.
+
+.. raw:: html
+
+
+
+
+Get Calendar
+--------------
+You can also add DIPY_ calendar to your google calendar with this `link. `_
+
+.. include:: links_names.inc
+
\ No newline at end of file
diff --git a/conf.py b/conf.py
index f8bd186f..abde2bce 100644
--- a/conf.py
+++ b/conf.py
@@ -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.
@@ -223,6 +227,10 @@
{
"name": "News",
"children": [
+ {
+ "name": "Calendar",
+ "url": "calendar",
+ },
{
"name": "Newsletters",
"url": "https://mail.python.org/mailman3/lists/dipy.python.org/",
@@ -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",
@@ -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",
@@ -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)
@@ -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.