drdoctr / doctr

A tool for automatically deploying docs from Travis CI to GitHub pages.
https://drdoctr.github.io
MIT License
107 stars 30 forks source link

Add --exclude flag to doctr deploy #296

Closed asmeurer closed 6 years ago

asmeurer commented 6 years ago

This isn't ready yet (I need to add some tests).

asmeurer commented 6 years ago

I'm running a live test at https://travis-ci.org/sympy/sympy.github.com/builds/337885302. If it works properly, I'll merge this and do a bugfix release.

asmeurer commented 6 years ago

Ah, it doesn't do the right thing with directories.

asmeurer commented 6 years ago

Is there an easy way to check if a path is contained in a list of other paths (including being a subdirectory)? Apparently os.path doesn't even have a subdirectory checking function.

asmeurer commented 6 years ago

OK, it worked for the SymPy site https://travis-ci.org/sympy/sympy.github.com/builds/338327612.

As a final test, when merged, https://drdoctr.github.io/doctr/exclude-test/index.html should exist, but https://drdoctr.github.io/doctr/exclude-test/test.html should not.