Skip to content

Commit

Permalink
Merge pull request #639 from eed3si9n/wip/dollar
Browse files Browse the repository at this point in the history
Fixes dollar sign
  • Loading branch information
eed3si9n authored Mar 8, 2018
2 parents e48b35d + 1a844fb commit c921d1d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,21 @@ Beware that sbt-ghpages interacts badly if your home directory is a git reposito
- Add last release to "Previous releases" in `src/nanoc/nanoc.yaml`
- Update `sbtVersion`, `windowsBuild` and `sbtVersionForScalaDoc` in `src/reference/template.properties`

## Dollar sign

Pamflet uses dollar sign (`$`) as the template variable character.
So if you use it in the document, use need to escape it with backslash: `\$`.

Here's how to check for unescaped dollar signs.

```
$ brew install ripgrep
$ rg '^([^\$]*)[^\\]\$([^\$]*)$' -g '*.md' src
src/reference/02-DetailTopics/03-Dependency-Management/04-Proxy-Repositories.md
79: export SBT_CREDENTIALS="$HOME/.ivy2/.credentials"
```

## Including code examples

To include a validated code examples, create a scripted test under `src/sbt-test`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ This repositories file is all that's required to use a proxy repository. These

In case you need to define credentials to connect to your proxy repository, define en environment variable `SBT_CREDENTIALS` that points to the file containing your credentials:

export SBT_CREDENTIALS="$HOME/.ivy2/.credentials"
export SBT_CREDENTIALS="\$HOME/.ivy2/.credentials"

with file contents

Expand Down

0 comments on commit c921d1d

Please sign in to comment.