Skip to content

Commit

Permalink
Merge pull request #2359 from posit-dev/dotnomad/gitignore-pattern
Browse files Browse the repository at this point in the history
Add more specificity to git ignore files pattern documentation
  • Loading branch information
dotNomad authored Oct 7, 2024
2 parents 1e084d9 + 6494e87 commit 0752e30
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,28 @@ Description for this content. It may span multiple lines and be up to 4000 chara

#### files

Project-relative paths of the files to be included in the deployment. Wildcards are accepted, using [`.gitignore` syntax](https://git-scm.com/docs/gitignore).
Project-relative paths of the files to be included in the deployment.
Uses [`.gitignore` syntax](https://git-scm.com/docs/gitignore) for file include
patterns, like wildcards.

Here are some examples given an example project structure:

```
project-root/
|
├── dir/
│ ├── util.py
│ └─ helper.py
└── app.py
```

- To include all Python files in your project, you can use a wildcard pattern.
`*.py` would include all `.py` files in any directory.
- `/dir/util.py` would include the specific `util.py` file in the `dir`
directory under the root of the project to be published.
- To include the file `app.py` at the root of the project, you can use
`/app.py`.

#### has_parameters

Expand Down

0 comments on commit 0752e30

Please sign in to comment.