Skip to content

Commit

Permalink
chore: added contributing info regarding fundoc
Browse files Browse the repository at this point in the history
  • Loading branch information
nekitk committed Apr 20, 2021
1 parent fdd1299 commit 204186d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Generating documentation

Documentation is automatically generated via GitHub action ["fundoc"](.github/workflows/fundoc.yml) and published to GitHub Pages. You don't need to commit it when working on the repo.

To generate documentation locally for test purposes you'll need to [install `fundoc`](https://github.com/CSSSR/fundoc#installation) first. Then you can run `fundoc` or `yarn build` in the project root.

To automatically generate documentation on files change consider configuring file watcher in your IDE. Example configuration for WebStorm:

![](https://s.csssr.ru/U07B23NE8/2021-04-20-12-39-40-9zc8j.jpg)
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ module.exports = {
```

You can find more recommendations for manual configuration [here](https://csssr.github.io/linters/recommendations.html).

## [Contributing](CONTRIBUTING.md)
2 changes: 1 addition & 1 deletion book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = []
language = "en"
multilingual = false
src = "./docs_src"
title = "CSSSR Linting"
title = "CSSSR Linters"

[build]
build-dir = "./docs"
Expand Down
2 changes: 1 addition & 1 deletion fundoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"comment_prefix": "*",
"comment_end_string": "*/",
"mdbook": true,
"book_name": "CSSSR Linting",
"book_name": "CSSSR Linters",
"book_build_dir": "./docs"
}

0 comments on commit 204186d

Please sign in to comment.