@@ -17,30 +17,70 @@ about how to play.
17
17
18
18
## Developers
19
19
20
- ### Markdown
20
+ ### Getting Started
21
21
22
- While not strictly enforced, we ask that you observe
23
- [ Markdown Linting] ( https://github.com/DavidAnson/markdownlint ) . The following can be
24
- added to a vscode settings file. The [ Rewrap] ( https://github.com/stkb/Rewrap/ ) extension
25
- supports wrapping to 88 characters.
22
+ 1 . ** Issues** . Proposing changes is as easy as [ opening an issue] ( https://github.com/DeckofAdventures/TheGame/issues/new/choose ) .
23
+ 2 . ** Edits** . The development team would welcome a PR that made direct edits to existing
24
+ docs. Be aware that many lists (e.g., Powers, Bestiary, etc.) are managed as ` yaml `
25
+ files that can be edited directly and then transformed before or after a PR.
26
+ 3 . ** Running Code** . The ` environment.yaml ` file specifies a
27
+ [ Conda] ( https://docs.conda.io/en/latest/ ) environment that will allow you to run all
28
+ code and generate documentation. ` mkdocs ` will allow you to see what the docs site
29
+ looks like before commiting by visiting ` localhost:8000 `
30
+
31
+ ``` console
32
+ conda env create -f environment.yaml # Generate conda environment
33
+ conda activate dofa # Activate the environment
34
+ python automation/main.py # Generate md docs
35
+ bash docs/docs.sh serve # Generate md docs and deploy site
36
+ ```
37
+
38
+ ### VS Code Extensions
39
+
40
+ The following VS Code extensions have been used to support development...
41
+
42
+ 1 . Markdown Lint: Establishes uniformity across docs
43
+ - [ Extension] ( https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint )
44
+ - [ GitHub] ( https://github.com/DavidAnson/markdownlint ) .
45
+ - Config: ` .markdownlint.yaml `
46
+ 2 . Rewrap: Supports hard wrapping docs to 88 characters, which makes facilitates PR
47
+ review. The default keyboard shortcut is ` alt+q ` or ` option+q ` .
48
+ - [ Extension] ( https://marketplace.visualstudio.com/items?itemName=stkb.rewrap )
49
+ - [ GitHub] ( https://github.com/stkb/Rewrap/ )
50
+ 3 . CSpell: Allows custom dictionaries on spell-check.
51
+ - [ Extension] ( https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker )
52
+ - [ GithHub] ( https://github.com/streetsidesoftware/vscode-spell-checker )
53
+ - Config: ` .cspell.json `
54
+ 4 . Black Formatter: Supports code uniformity.
55
+ - [ Extension] ( https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter )
56
+ - [ GitHub] ( https://github.com/microsoft/vscode-black-formatter )
57
+
58
+ The following items may also be helpful in a ` .vscode/settings.json ` file
26
59
27
60
``` json
28
61
{
29
62
"[markdown]" : {
30
63
"editor.rulers" : [88 ],
31
64
"editor.formatOnPaste" : true ,
32
- "editor.formatOnSave" : true ,
33
- // https://github.com/stkb/Rewrap/
34
- // Toggle via command prompt per file
35
- // Default paragraph rewrap key: alt+q or option+q
65
+ "editor.formatOnSave" : false ,
36
66
"rewrap.autoWrap.enabled" : true ,
37
67
"rewrap.wrappingColumn" : 88
38
68
},
39
- // https://github.com/DavidAnson/markdownlint
40
69
"editor.codeActionsOnSave" : {
41
70
"source.fixAll.markdownlint" :true
42
71
},
43
- "markdownlint.focusMode" : 5 , // ignore issues around the cursor
72
+ "python.analysis.autoImportCompletions" : false ,
73
+ "python.formatting.provider" : " black" ,
74
+ "python.defaultInterpreterPath" : " /YOUR/LOCAL/PATH" ,
75
+ "python.formatting.blackArgs" : [
76
+ " --line-length=88" ,
77
+ " --exclude='.env'"
78
+ ],
79
+ "[python]" : {
80
+ "editor.formatOnSave" : true ,
81
+ "editor.defaultFormatter" : " ms-python.python"
82
+ },
83
+ "notebook.formatOnSave.enabled" :true ,
44
84
}
45
85
```
46
86
0 commit comments