Skip to content

Add docker image that allows to run docs in development mode#157

Merged
VanDavv merged 9 commits into
mainfrom
dev_docker
Mar 17, 2021
Merged

Add docker image that allows to run docs in development mode#157
VanDavv merged 9 commits into
mainfrom
dev_docker

Conversation

@VanDavv
Copy link
Copy Markdown
Contributor

@VanDavv VanDavv commented Mar 14, 2021

I'm using Arch-based distro, and with the new build system in place, I cannot build the docs as stated, because I don't have anything under /usr/lib/llvm-* - which is accessed by pybind11_mkdoc while searching for lib/libclang.so.1.

This PR introduces Docker image, that allows to run the container that will build the docs whenever they are changed and host it, allowing to access the locally-built documentation

@VanDavv VanDavv requested a review from themarpe March 14, 2021 12:41
Copy link
Copy Markdown
Collaborator

@themarpe themarpe left a comment

Choose a reason for hiding this comment

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

2 questions. Should we move the files to eg docker directory (just so to not run on development machine, as the scripts are not intended to? (Or we tweak them a tad more to be used locally as well, while still moving docker only things to separate directory.

Second, in update_docs.sh the rm -rf build is expensive to perform. I advise to rather just clean out sphinx build directory: build/docs/sphinx (and maybe doxygen build/depthai-core/docs/xml)

(Also, I think this PR should target develop, discussing locally about documentation branches)

@Luxonis-Brandon Luxonis-Brandon added enhancement New feature or request Gen2 Feature for or issue with Gen2 labels Mar 15, 2021
@VanDavv VanDavv marked this pull request as draft March 16, 2021 11:49
@VanDavv VanDavv marked this pull request as ready for review March 16, 2021 12:11
@VanDavv VanDavv requested a review from themarpe March 16, 2021 13:00
@VanDavv VanDavv changed the base branch from main to develop March 16, 2021 13:09
@VanDavv VanDavv changed the base branch from develop to main March 16, 2021 13:12
Copy link
Copy Markdown
Collaborator

@themarpe themarpe left a comment

Choose a reason for hiding this comment

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

Add documentation to README.md covering both:

  • Building documentation without docker
  • Using the created docker

@VanDavv
Copy link
Copy Markdown
Contributor Author

VanDavv commented Mar 17, 2021

@themarpe added the info to README.md

@VanDavv VanDavv requested a review from themarpe March 17, 2021 13:14
Comment thread README.md
Comment thread README.md
@VanDavv VanDavv requested a review from themarpe March 17, 2021 14:28
@VanDavv VanDavv merged commit 1fbbade into main Mar 17, 2021
@VanDavv VanDavv deleted the dev_docker branch March 17, 2021 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Gen2 Feature for or issue with Gen2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants