Skip to content

Commit f2369e0

Browse files
committed
Use the function format for docs to avoid pitfalls
1 parent b71b165 commit f2369e0

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,15 @@ def project do
5959
name: "MyApp",
6060
source_url: "https://github.com/USER/PROJECT",
6161
homepage_url: "http://YOUR_PROJECT_HOMEPAGE",
62-
docs: [
63-
main: "MyApp", # The main page in the docs
64-
logo: "path/to/logo.png",
65-
extras: ["README.md"]
66-
]
62+
docs: &docs/0
63+
]
64+
end
65+
66+
defp docs do
67+
[
68+
main: "MyApp", # The main page in the docs
69+
logo: "path/to/logo.png",
70+
extras: ["README.md"]
6771
]
6872
end
6973
```

0 commit comments

Comments
 (0)