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

[Change] docs format #9

Merged
merged 5 commits into from
Feb 10, 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
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Changelog
=========

Version 0.1.3 [2024-02-10]
--------------------------
- Changed theme of HTML documentation and added example markdown files to the README.

Version 0.1.2 [2024-02-10]
--------------------------
- Added more documentation on how to use the package.
Expand Down
8 changes: 7 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ This is a small package I created to help me format references in my documentati
It uses pandoc to convert the references from bibtex to a format that can be used
in markdown files.

For example, this `input file`_ along with the corresponding `bibliography file`_ can be used to generate this `output file`_.

.. _input file: https://github.com/danibene/docite/blob/main/src/docite/assets/example_inputfile.md
.. _bibliography file: https://github.com/danibene/docite/blob/main/src/docite/assets/example_bibfile.bib
.. _output file: https://github.com/danibene/docite/blob/main/src/docite/assets/example_outputfile.md

Installation
================
You can install the package via pip::
Expand Down Expand Up @@ -73,7 +79,7 @@ My personal workflow is:

Here is a gif showing how I use the package:

.. image:: https://github.com/danibene/docite/blob/assets/usage_2024-02-10.gif
.. image:: https://raw.githubusercontent.com/danibene/docite/assets/usage_2024-02-10.gif
:alt: Usage
:align: center

Expand Down
27 changes: 27 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
body, .body {
background-color: #333333 !important; /* Dark grey background */
color: black !important; /* Black text */
}

a {
color: #009688 !important; /* Teal links */
}

a:visited {
color: #00796b !important; /* Darker teal for visited links */
}

h1, h2, h3, h4, h5, h6 {
color: #333333 !important; /* Dark grey for headers */
}

body {
--themecolor: black;
}

.wy-side-nav-search {
background-color: var(--themecolor);
}
.wy-nav-top {
background-color: var(--themecolor);
}
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,11 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = "alabaster"
html_theme = "sphinx_rtd_theme"

# 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 = {"sidebar_width": "300px", "page_width": "1200px"}

# Add any paths that contain custom themes here, relative to this directory.
# html_theme_path = []
Expand All @@ -183,6 +182,9 @@
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
html_css_files = [
"custom.css",
]

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# To build the module reference correctly, make sure every external package
# under `install_requires` in `setup.cfg` is also listed here!
sphinx>=3.2.1
# sphinx_rtd_theme
sphinx_rtd_theme
Loading