-
Notifications
You must be signed in to change notification settings - Fork 533
Fix and test building documentation is possible without running all notebooks #420
base: v0.x
Are you sure you want to change the base?
Conversation
@@ -241,7 +241,7 @@ print(sample_tgt_seq) | |||
``` | |||
|
|||
If you'd like to train your own transformer models, you may find the training scripts in our | |||
[model zoo](../../model_zoo/machine_translation/index.rst). | |||
[model zoo](../../../scripts/machine_translation/index.rst). |
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.
Without this change we run into readthedocs/recommonmark#93
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.
But it is not valid for the CI build with publication /var/lib/jenkins/workspace/gluon-nlp-docs/docs/examples/machine_translation/transformer.ipynb.rst:link outside of source directory: '../scripts/machine_translation/index.rst'
8cd4386
to
9993143
Compare
Codecov Report
@@ Coverage Diff @@
## master #420 +/- ##
===========================================
- Coverage 84.25% 69.61% -14.65%
===========================================
Files 94 134 +40
Lines 8313 11833 +3520
===========================================
+ Hits 7004 8237 +1233
- Misses 1309 3596 +2287
|
ea751bf
to
d4c48ef
Compare
CI currently only tests that documentation can be built after all notebooks are run and converted from .md to .ipynb format. Running all notebooks takes some time. This CI step makes sure, that the documentation can also be built without converting the notebooks first.
d4c48ef
to
dfd581b
Compare
I'm not yet sure how to get this to work. https://github.com/dmlc/gluon-nlp/pull/420/files#diff-be3f0c715a65e953102c0e00f934c72bR244 fixes the issue in the local mode, but breaks on CI. (I didn't look into this again.) |
Description
CI currently only tests that documentation can be built after all notebooks are
run and converted from .md to .ipynb format. Running all notebooks takes some
time. This CI step makes sure, that the documentation can also be built without
converting the notebooks first.
Checklist
Essentials
Changes
Comments
Fixes #419