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

Update Sphinx Docs and Automated gh-pages deployment #45

Closed
wants to merge 42 commits into from

Conversation

TagnumElite
Copy link
Member

@niftools/pyffi-reviewer

Overview

Updates to the documentation's theme and tree. This should allow for more in-depth information as well building gh-pages as long as there is an access key assigned to Travis.

Fixes Known Issues

N/A

Documentation

I require information to update the docs.

Testing

N/A, shouldn't be needed

Manual

You are required to create a GitHub access key to allow Travis to push to gh-pages.

Automated

N/A

Additional Information

I require information to update the docs with.

@coveralls
Copy link

coveralls commented Sep 27, 2017

Coverage Status

Coverage remained the same at 58.387% when pulling 7c62c08 on TagnumElite:update_docs into 82083af on niftools:develop.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 58.387% when pulling 7c62c08 on TagnumElite:update_docs into 82083af on niftools:develop.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 58.387% when pulling 7c62c08 on TagnumElite:update_docs into 82083af on niftools:develop.

@coveralls
Copy link

coveralls commented Sep 27, 2017

Coverage Status

Coverage remained the same at 58.387% when pulling e207808 on TagnumElite:update_docs into 82083af on niftools:develop.

Started working on updating PyFFI docs

Completetly regenerated the Sphinx docs and added some more features to
it.
Branched out the pyffi api documentation

Todo:
- Expand docs to make PyFFI easily understandable to others
- Fix some errors in the code

Maybe:
- I might have to rewrite some code competently to make it compatible
with autodoc!
@TagnumElite
Copy link
Member Author

Is this supposed to happen when I rebase the branch? ...

@TagnumElite TagnumElite reopened this Sep 27, 2017
@TagnumElite
Copy link
Member Author

TagnumElite commented Sep 27, 2017

Okay, there is something funky going on with my computer...

Can I close this and redo it?

@neomonkeus
Copy link
Member

I can give feedback on your own branch and then we can squash to a singe commit when its ready as I have no idea why your getting duplicate commits. It will avoid automated builds being generated.

@neomonkeus neomonkeus closed this Sep 27, 2017
@coveralls
Copy link

coveralls commented Sep 27, 2017

Coverage Status

Coverage remained the same at 58.387% when pulling f1d05e0 on TagnumElite:update_docs into 82083af on niftools:develop.

@coveralls
Copy link

coveralls commented Sep 27, 2017

Coverage Status

Coverage remained the same at 58.387% when pulling f1d05e0 on TagnumElite:update_docs into 82083af on niftools:develop.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 58.387% when pulling f1d05e0 on TagnumElite:update_docs into 82083af on niftools:develop.

@TagnumElite TagnumElite deleted the update_docs branch September 27, 2017 16:54
Copy link
Member

@neomonkeus neomonkeus left a comment

Choose a reason for hiding this comment

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

Finally got around to reviewing. One or two open questions, good baseline, would need to reproduce due to renaming & rebase issue.

@@ -29,6 +29,16 @@ script:
after_success:
- coveralls
- python setup.py sdist bdist_wheel
Copy link
Member

Choose a reason for hiding this comment

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

Why are you removing the sdist & bdist_wheel

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't, that's how the yml works

@@ -1,11 +1,24 @@
PyFFI
=====
.. image:: https://travis-ci.org/niftools/pyffi.png?branch=develop
.. image:: https://img.shields.io/travis/niftools/pyffi/develop.svg
Copy link
Member

Choose a reason for hiding this comment

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

How were these created, who controls them?

Copy link
Member Author

Choose a reason for hiding this comment

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

https://shields.io is a website that provides high-quality metadata badges for open source projects.

@@ -57,6 +57,7 @@ install:
- "set HOME=%APPVEYOR_BUILD_FOLDER%"
- "%PIP% install setuptools pip --upgrade"
- "%PIP% install check-manifest coveralls nose pytest pytest-cov twine wheel"
Copy link
Member

Choose a reason for hiding this comment

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

Any reason for not using the previous line?

Copy link
Member Author

Choose a reason for hiding this comment

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

None what so ever.

@@ -1,70 +0,0 @@
# Makefile for Sphinx documentation
Copy link
Member

Choose a reason for hiding this comment

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

When reorganising folder structure, use git mv if not using an IDE with git integration.
This avoids the review bloating where it looks like you deleted the contents of files and created files.

Copy link
Member Author

Choose a reason for hiding this comment

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

I did that with a new branch as I am doing everything all over again.

'pypi': 'PyFFI',
'discord_id': 309117867398397952,
'discord_invite': 'https://img.shields.io/discord/309117867398397952.svg',
'rtd': 'tagnumelite-pyffi',
Copy link
Member

Choose a reason for hiding this comment

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

Remove reference to your local version.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have

@@ -13,10 +13,10 @@ then
echo "PyFFI test release - documentation not included" > docs/index.html
else
rm -rf docs
pushd docs-sphinx
pushd docs
make html SPHINXBUILD=sphinx-build-3.2
Copy link
Member

Choose a reason for hiding this comment

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

Is this still correct since you've bumped versions.

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't bump versions though... also, makezip.bat and makezip.sh use epydoc. So I left that un touched in the new branch.

@@ -1,13 +1,14 @@
"""
:mod:`pyffi` --- Interfacing block structured files
===================================================
PyFFI --- Interfacing block structured files
Copy link
Member

Choose a reason for hiding this comment

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

Why drop the module?

Copy link
Member Author

Choose a reason for hiding this comment

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

An experiment. I didn't do it this time.

@@ -5,4 +5,5 @@ pdbpp
pyflakes
pytest
pytest-cov
sphinx
sphinx>=1.6.0
niftools_sphinx_theme
Copy link
Member

Choose a reason for hiding this comment

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

Probably good to stick a version here also.
Where is this sourced from seeing as it has "niftools", its not one of our projects.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a sphinx theme I created from copying your niftools.github.io repository so that all the documentation would look the same as the main website.

license="BSD",
keywords="fileformat nif cgf binary interface stripify",
platforms=["any"],
description="Processing block structured binary files.",
classifiers=[_f for _f in classifiers.split("\n") if _f],
long_description=long_description,
url="https://github.com/niftools/pyffi",
download_url="https://github.com/niftools/pyffi/releases"
download_url="https://github.com/niftools/pyffi/releases",
install_requires=requirements
Copy link
Member

Choose a reason for hiding this comment

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

Should not use requirement-dev as the requirements - https://caremad.io/posts/2013/07/setup-vs-requirement/

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@@ -103,4 +103,4 @@ def test_nested_braces(self):

Copy link
Member

Choose a reason for hiding this comment

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

Rebase issue by the looks of things.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's what caused the double commit problem and me closing this pull request.

@TagnumElite
Copy link
Member Author

Anyway, I am redoing this all over again as well as changing the way I am doing things.
New branch: https://github.com/TagnumElite/pyffi/tree/sphinx
I want to work on a few things then I will publish and create a new commit to this branch.
Until then, this branch won't exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants