Skip to content

Commit

Permalink
Include category, query modules in generated docs
Browse files Browse the repository at this point in the history
Move README contents to package __init__: this is the index.
  • Loading branch information
lukasschwab committed Aug 31, 2021
1 parent 6c07450 commit 10c3469
Show file tree
Hide file tree
Showing 10 changed files with 7,680 additions and 3,508 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ test: $(source) $(tests)

docs: docs/index.html
docs/index.html: $(source) README.md
pdoc --docformat "restructuredtext" ./arxiv/arxiv.py -o docs
mv docs/arxiv/arxiv.html docs/index.html
rmdir docs/arxiv
rm docs/search.json
pdoc --docformat "restructuredtext" ./arxiv -o docs

clean:
rm -rf build dist
Expand Down
1 change: 1 addition & 0 deletions arxiv/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
""".. include:: ../README.md"""
# flake8: noqa
from .arxiv import *
from .query import *
1 change: 0 additions & 1 deletion arxiv/arxiv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
""".. include:: ../README.md"""
import logging
import time
import feedparser
Expand Down
2 changes: 1 addition & 1 deletion arxiv/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self, query_string: str = ""):
self._query_string = query_string

# FIXME: check if value is a Category?
def attribute(attribute: "Query.Attribute", value: str) -> "Query":
def attribute(attribute: "Attribute", value: str) -> "Query":
return Query('{}:"{}"'.format(attribute.value, value))

def __compose(self, other: "Query", operator: "Query.Operator"):
Expand Down
461 changes: 461 additions & 0 deletions docs/arxiv.html

Large diffs are not rendered by default.

3,509 changes: 3,509 additions & 0 deletions docs/arxiv/arxiv.html

Large diffs are not rendered by default.

2,748 changes: 2,748 additions & 0 deletions docs/arxiv/category.html

Large diffs are not rendered by default.

722 changes: 722 additions & 0 deletions docs/arxiv/query.html

Large diffs are not rendered by default.

3,738 changes: 236 additions & 3,502 deletions docs/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/search.json

Large diffs are not rendered by default.

0 comments on commit 10c3469

Please sign in to comment.