Skip to content

Allow to exclude files/directories from the embedding #60

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

Merged
merged 25 commits into from
Oct 28, 2024

Conversation

olena-zmiiova
Copy link

In this PR, a doc-excludes configuration property was introduced for embed-code. It allows files and directories to be excluded from the code embedding by passing the glob-pattern string to it (as for doc-includes and code-includes). It can be done by a config file or a cli argument. Example of a config file:

code-path: "../../Some-Code-Snippets/src"
docs-path: "../some/docs"
doc-excludes: "**/*-old.md,**/deprecated/**.*"

Copy link
Collaborator

@dmytro-kashcheiev dmytro-kashcheiev left a comment

Choose a reason for hiding this comment

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

@olena-zmiiova olena-zmiiova merged commit 33e527a into embed-code-go Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants