Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: do not remove .git when building documentation #34

Closed
warpdesign opened this issue Jan 10, 2018 · 2 comments
Closed

Suggestion: do not remove .git when building documentation #34

warpdesign opened this issue Jan 10, 2018 · 2 comments
Labels
docma-cli docma-core feature-request v2 Fixed or implemented. To be released.

Comments

@warpdesign
Copy link
Contributor

When building the documentation, docma will empty the directory specified with the -d option.

Right now, I am generating the documentation at the root of a git repository, so that when I want to update the documentation, I just have to commit/push the new files to my repository to update the website.

But since docma empties the whole directory, it also removes the .git directory so I can't commit/push anymore.

Suggestion: allow to keep hidden files/directories (ie: starting with a dot). Or maybe a new option could allow to specify a list of files/patterns to keep?

@onury
Copy link
Owner

onury commented Jan 10, 2018

I see your point. Will look into it.

@onury onury added the Fixed or implemented. To be released. label Mar 25, 2018
@onury
Copy link
Owner

onury commented Apr 12, 2018

Docma v2.0.0 is released. Now, Docma will NOT empty the destination directory by default. CLI has a new --clean option if you want all contents to be removed before building into the dest. dir.

@onury onury closed this as completed Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docma-cli docma-core feature-request v2 Fixed or implemented. To be released.
Projects
None yet
Development

No branches or pull requests

2 participants