Repository navigation
Use bookdown 2 23 - #390
Conversation
|
this isn't quite ready to go. need to figure out how to address need for bookdown 2.23 - suggestions welcome. |
|
I converted this to a draft (button under the Reviewers list) and added |
|
Improved In order to check for bookdown 2.23 or greater, using |
|
this is ready for review. |
|
I get an error straight off: The reason seems to be the hard coding of the Rscript path: |
| **`build.py`** | ||
|
|
||
| The program `build.py` convert the markdown files under `src` to html and pdf and populates the `docs` dir with the generated documentation. | ||
| Requires Python 3.5 or higher, due to call to `subproces.run`. |
There was a problem hiding this comment.
While subprocess.run was added in 3.5, the capture_output kwarg wasn't until 3.7 -- I think that's probably fine, but we should correct the minimum version here.
There was a problem hiding this comment.
also checking in script itself.
| raise Exception(returncode) | ||
|
|
||
| def check_bookdown_2_23(): | ||
| command = ["/usr/local/bin/Rscript", "-e", "utils::packageVersion(\"bookdown\") > 0.22"] |
There was a problem hiding this comment.
| command = ["/usr/local/bin/Rscript", "-e", "utils::packageVersion(\"bookdown\") > 0.22"] | |
| command = ["Rscript", "-e", "utils::packageVersion(\"bookdown\") > 0.22"] |
Submission Checklist
Summary
Updated
_output.ymlfiles for all docs so that docs will build with bookdown 2.23. Unfortunately, bookdown 2.23 introduced a breaking change for the yaml headers w/r/t search engine config.Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Columbia University
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: