Skip to content

Conversation

@kotfu
Copy link
Member

@kotfu kotfu commented Jan 15, 2020

Some more documentation focused on generating output for #765.

kotfu and others added 27 commits November 22, 2019 22:14
- titles and headings
- referencing methods
# Conflicts:
#	docs/features/generating_output.rst
#	docs/features/settings.rst
We will not try and have Sphnix extract attribute documentation from the source code, it will just live in the documentation.
@codecov
Copy link

codecov bot commented Jan 15, 2020

Codecov Report

Merging #847 into master will increase coverage by 0.14%.
The diff coverage is 98.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #847      +/-   ##
==========================================
+ Coverage   97.21%   97.36%   +0.14%     
==========================================
  Files          14       14              
  Lines        3519     3561      +42     
==========================================
+ Hits         3421     3467      +46     
+ Misses         98       94       -4
Impacted Files Coverage Δ
cmd2/parsing.py 100% <ø> (ø) ⬆️
cmd2/rl_utils.py 100% <ø> (ø) ⬆️
cmd2/transcript.py 93.69% <100%> (ø) ⬆️
cmd2/ansi.py 100% <100%> (ø) ⬆️
cmd2/utils.py 97.56% <100%> (+0.38%) ⬆️
cmd2/history.py 100% <100%> (ø) ⬆️
cmd2/argparse_completer.py 100% <100%> (+0.32%) ⬆️
cmd2/argparse_custom.py 94.23% <100%> (ø) ⬆️
cmd2/cmd2.py 96.6% <92.3%> (+0.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10b8448...64c05ab. Read the comment docs.

@tleonhardt
Copy link
Member

When I try to build the docs on this branch on my machine, I get the following traceback:

Traceback (most recent call last):
  File "/Users/toddleonhardt/src/cmd2/.venv/lib/python3.7/site-packages/sphinx/cmd/build.py", line 276, in build_main
    app.build(args.force_all, filenames)
  File "/Users/toddleonhardt/src/cmd2/.venv/lib/python3.7/site-packages/sphinx/application.py", line 353, in build
    self.builder.build_update()
  File "/Users/toddleonhardt/src/cmd2/.venv/lib/python3.7/site-packages/sphinx/builders/__init__.py", line 299, in build_update
    len(to_build))
  File "/Users/toddleonhardt/src/cmd2/.venv/lib/python3.7/site-packages/sphinx/builders/__init__.py", line 361, in build
    self.write(docnames, list(updated_docnames), method)
  File "/Users/toddleonhardt/src/cmd2/.venv/lib/python3.7/site-packages/sphinx/builders/__init__.py", line 535, in write
    self._write_serial(sorted(docnames))
  File "/Users/toddleonhardt/src/cmd2/.venv/lib/python3.7/site-packages/sphinx/builders/__init__.py", line 545, in _write_serial
    self.write_doc(docname, doctree)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/Users/toddleonhardt/src/cmd2/.venv/lib/python3.7/site-packages/sphinx/util/logging.py", line 219, in pending_warnings
    memhandler.flushTo(logger)
  File "/Users/toddleonhardt/src/cmd2/.venv/lib/python3.7/site-packages/sphinx/util/logging.py", line 184, in flushTo
    logger.handle(record)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 1524, in handle
    self.callHandlers(record)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 1586, in callHandlers
    hdlr.handle(record)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 890, in handle
    rv = self.filter(record)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 751, in filter
    result = f.filter(record)
  File "/Users/toddleonhardt/src/cmd2/.venv/lib/python3.7/site-packages/sphinx/util/logging.py", line 404, in filter
    raise SphinxWarning(location + ":" + message)
sphinx.errors.SphinxWarning: /Users/toddleonhardt/src/cmd2/docs/features/generating_output.rst:32:py:mod reference target not found: cmd2.Cmd

Warning, treated as error:
/Users/toddleonhardt/src/cmd2/docs/features/generating_output.rst:32:py:mod reference target not found: cmd2.Cmd

@tleonhardt
Copy link
Member

I confirmed that I get the same traceback as above on a 2nd machine - both are macOS, but one has Python installed from brew and the other via pipenv.

tleonhardt
tleonhardt previously approved these changes Jan 16, 2020
@kotfu
Copy link
Member Author

kotfu commented Jan 16, 2020

Sorry for the sloppy PR, that's kinda lame on my part 😬😞. Fixed.

tleonhardt
tleonhardt previously approved these changes Jan 16, 2020
Copy link
Member

@tleonhardt tleonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

tleonhardt
tleonhardt previously approved these changes Jan 16, 2020
@kmvanbrunt kmvanbrunt merged commit e3b6824 into master Jan 16, 2020
@kmvanbrunt kmvanbrunt deleted the generating_output_docs branch January 16, 2020 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants