-
-
Notifications
You must be signed in to change notification settings - Fork 268
[NEW] Build and deploy github sphinx project page #395
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome thanks @mileo - few comments, non-blocking
travis/travis_after_tests_success
Outdated
@@ -19,3 +22,12 @@ if (os.environ.get('TESTS', '1') == '1' and | |||
codecov_main(argv=None) | |||
except: | |||
pass | |||
|
|||
if os.environ.get('DOC') == '1': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker, but can we name this AUTODOC
instead? It'll jive a little better with pre-existing jargon IMO.
travis/travis_after_tests_success
Outdated
'deploy' | ||
]) | ||
|
||
sys.exit(0 if status == 0 else 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just directly exit using the subprocess.call status code?
dbdb7c8
to
3d22e8f
Compare
@lasley FIXED, please tag as need review. |
@mileo I'm not a PSC of this repo, @OCA/community-maintainers @moylop260 @pedrobaeza - mind adding the WIP tag please? |
travis/travis_install_nightly
Outdated
pip install --upgrade docutils | ||
pip install --upgrade pillow | ||
pip install --upgrade --user travis-sphinx | ||
export PATH=$HOME/.local/bin:$PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest placing the name of all packages above into a file requirements-travis-sphinx.txt
and calling pip install --upgrade -r requirements-travis-sphinx.txt
.
I don't think installing travis-sphinx
with --user
is necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than that small comment, I'm ok with this PR
3d22e8f
to
2506350
Compare
@max3903 Can you review this PR. If approved i can work in integration with robotframework. Thanks in advance |
Could you add a |
51427dc
to
907155e
Compare
tests/test_repo/docs/source/conf.py
Outdated
# | ||
# This is also used if you do content translation via gettext catalogs. | ||
# Usually you set "language" from the command line for these cases. | ||
language = 'pt_BR' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really a good default for an international repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question, if those hard coded references to brazilian localisation are desired?
tests/test_repo/docs/source/conf.py
Outdated
|
||
|
||
# List of addons name to load (if empty, no addon will be loaded) | ||
sphinxodoo_addons = ['l10n_br_base'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, already removed. Thanks
@mileo I could not see on a quick look how
is achieved. It would be great, would it not be absolutely github specific, there are people who use bitbucket or increasingly gitlab. Being able to make the final location configurable under this aspect would be a very much appreciated consideration. |
785cade
to
fa58262
Compare
@mileo - Is this still WIP? I tested this build and it seems to work fine, so IMO we should move forward with the few test fixes, review + merge on this version & scope additional features to other PRs. |
fa58262
to
62468c2
Compare
Sweet, any idea on the build errors? Also, maybe remove WIP from the title? |
0f08877
to
c99efc6
Compare
@moylop260 @lasley @leorochael @blaggacao I tried to make the tests happen several times ... I could not understand the problem Master branch isn't green in our travis: https://travis-ci.org/kmee/maintainer-quality-tools/builds/202065922 Thanks for any help |
flake8 changed the name of a check more info: NOTE: We need improvement the output of the tests |
Signed-off-by: Luis Felipe Mileo <[email protected]>
f280a0a
to
259f38a
Compare
Hi,
With this feature we can automatic deploy module doc to a sphinx github page:
Job Example: https://travis-ci.org/kmee/l10n-brazil/jobs/181258185
Website example: http://www.odoobrasil.org.br/
Autodoc example: http://www.odoobrasil.org.br/py-modindex.html
Future roadmap: