Skip to content

Commit

Permalink
Working Pechakucha Directive
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacgbaba committed Dec 17, 2023
1 parent 83ffe08 commit 25b3323
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 24 deletions.
57 changes: 40 additions & 17 deletions conf.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,55 @@
import os
import sys
sys.path.insert(0, os.path.abspath('_ext')) # Adjust '_ext' to your directory's path

sys.path.append(os.path.abspath("./_ext"))

extensions = ['todo']
# extensions = ['todo']

todo_include_todos = False

# -- Project information -----------------------------------------------------

project = 'Site Title'
copyright = '2023, Your name'
author = 'Your Name'

extensions = [
'Pechakucha.pechakucha_directive',
#"myst_nb",
#"ablog",
'sphinx.ext.intersphinx',
"sphinx_design",
'todo',
#"sphinxext.opengraph",
]
# ----------------------------------------------------------------------------
# Below here does not need to be edited for the lab
# ----------------------------------------------------------------------------

# # -- Project information -----------------------------------------------------
# -- General configuration ---------------------------------------------------

# project = 'Site Title'
# copyright = '2023, Your name'
# author = 'Your Name'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.

# conf.py

# ...

# # ----------------------------------------------------------------------------
# # Below here does not need to be edited for the lab
# # ----------------------------------------------------------------------------
# Specify 'dirhtml' as one of the builders
html_theme = 'sphinx_rtd_theme'

# -- General configuration ---------------------------------------------------
# Add 'dirhtml' to the 'html_theme_options' configuration
html_theme_options = {
'style_nav_header_background': '#343131',
}

# Specify 'dirhtml' as one of the builders

# # Add any Sphinx extension module names here, as strings. They can be
# # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# # ones.
# ...


# # "sphinxext.rediraffe",
# "sphinxext.rediraffe",

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -115,6 +137,7 @@
# "tasklist",
]

# def setup(app):
# app.add_css_file("custom.css")
# # app.add_js_file("custom.js")
def setup(app):
app.add_css_file("custom.css")
app.add_js_file("custom.js")

2 changes: 1 addition & 1 deletion index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Welcome to my profile site!
====================================
============

.. toctree::
somefile.rst
Expand Down
2 changes: 1 addition & 1 deletion somefile.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
=================
My Pechakucha
=================
=================

Hello everyone, this is my first time running this extension to see how it works

Expand Down
9 changes: 4 additions & 5 deletions someotherfile.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
foo
===
===============
Class Progress
===============

.. This is what I have to get done for this class:
.. .. todolist::
.. write code for pechakucha
.. Add to github
.. Make extension
finished pechakucha

0 comments on commit 25b3323

Please sign in to comment.