-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
355 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.pdf filter=lfs diff=lfs merge=lfs -text | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.jpg filter=lfs diff=lfs merge=lfs -text | ||
*.jpeg filter=lfs diff=lfs merge=lfs -text | ||
*.ico filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
*.log | ||
*.DS_Store | ||
dist | ||
__pycache__ | ||
MANIFEST | ||
.coverage | ||
coverage.xml | ||
docs/_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
submodules: | ||
include: all | ||
recursive: true | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
python: | ||
install: | ||
- requirements: docs/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
include pymitter.py setup.py requirements.txt README.md LICENSE .flake8 | ||
global-exclude *.py[cod] __pycache__ | ||
graft pymitter | ||
include requirements.txt requirements_dev.txt README.md LICENSE .flake8 | ||
global-exclude *.py[cod] __pycache__ .github tests/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Git LFS file not shown
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Makefile for Sphinx documentation | ||
|
||
# You can set these variables from the command line. | ||
SPHINXOPTS = | ||
SPHINXBUILD = sphinx-build | ||
PAPER = | ||
BUILDDIR = _build | ||
|
||
# User-friendly check for sphinx-build | ||
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) | ||
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) | ||
endif | ||
|
||
# Internal variables. | ||
PAPEROPT_a4 = -D latex_paper_size=a4 | ||
PAPEROPT_letter = -D latex_paper_size=letter | ||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . | ||
# the i18n builder cannot share the environment and doctrees with the others | ||
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . | ||
|
||
.PHONY: help clean html | ||
|
||
help: | ||
@echo "Please use \`make <target>' where <target> is one of" | ||
@echo " clean to cleanup all build files" | ||
@echo " html to make standalone HTML files" | ||
|
||
clean: | ||
rm -rf $(BUILDDIR)/* | ||
|
||
html: | ||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html | ||
@echo | ||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* custom styles */ | ||
|
||
div#site-navigation img.logo { | ||
width: 250px !important; | ||
height: 55px !important; | ||
max-height: none !important; | ||
} | ||
|
||
div#site-navigation div.navbar_extra_footer { | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# coding: utf-8 | ||
|
||
import sys | ||
import os | ||
|
||
|
||
thisdir = os.path.dirname(os.path.abspath(__file__)) | ||
sys.path.insert(0, os.path.dirname(thisdir)) | ||
|
||
import pymitter as pm | ||
|
||
|
||
project = pm.__name__ | ||
author = pm.__author__ | ||
copyright = pm.__copyright__ | ||
copyright = copyright[10:] if copyright.startswith("Copyright ") else copyright | ||
copyright = copyright.split(",", 1)[0] | ||
version = pm.__version__[:pm.__version__.index(".", 2)] | ||
release = pm.__version__ | ||
language = "en" | ||
|
||
templates_path = ["_templates"] | ||
html_static_path = ["_static"] | ||
master_doc = "index" | ||
source_suffix = ".rst" | ||
exclude_patterns = [] | ||
pygments_style = "sphinx" | ||
add_module_names = False | ||
|
||
html_title = "{} v{}".format(project, version) | ||
html_logo = "../assets/logo.png" | ||
html_favicon = "../assets/favicon.ico" | ||
html_theme = "sphinx_book_theme" | ||
html_theme_options = { | ||
"show_navbar_depth": 2, | ||
"repository_url": "https://github.com/riga/pymitter", | ||
"use_repository_button": True, | ||
"use_issues_button": True, | ||
"use_edit_page_button": True, | ||
} | ||
|
||
extensions = [ | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.intersphinx", | ||
"sphinx.ext.viewcode", | ||
"sphinx.ext.autosectionlabel", | ||
"autodocsumm", | ||
"myst_parser", | ||
"sphinx_lfs_content", | ||
] | ||
|
||
autodoc_member_order = "bysource" | ||
|
||
|
||
def setup(app): | ||
app.add_css_file("styles.css") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
**pymitter** | ||
============ | ||
|
||
.. include:: ../README.md | ||
:parser: myst_parser.sphinx_ | ||
:start-after: <!-- marker-before-badges --> | ||
:end-before: <!-- marker-after-body --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# main packages | ||
-r ../requirements.txt | ||
|
||
# dev packages | ||
-r ../requirements_dev.txt | ||
|
||
# documentation packages | ||
sphinx~=6.2.1 | ||
sphinx-autodoc-typehints~=1.22,<1.23 | ||
sphinx-book-theme~=1.0.1 | ||
sphinx-lfs-content~=1.1.3 | ||
autodocsumm~=0.2.11 | ||
myst-parser~=2.0.0 |
Oops, something went wrong.