File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,15 +12,20 @@ Please fill in the following template. Use ``null`` if an entry does not apply.
1212``` json
1313{
1414 "Authors" : " John Doe" ,
15+ "Cite" : " https://dx.doi.org/10.3.4" ,
1516 "Coding Language" : " Python" ,
16- "Description" : " An example description of the software" ,
17+ "Description" : " An example AFM software" ,
1718 "Documentation" : " https://readthedocs.io/example" ,
1819 "Download Page" : " https://example.com/downloads" ,
1920 "Homepage" : null ,
2021 "License" : " GPL" ,
21- "Name" : " AFM-example-software-name" ,
22- "Operating System" : [" Windows" , " macOS" ],
22+ "Name" : " AFMsoft" ,
23+ "Operating System" : [
24+ " Linux" ,
25+ " macOS" ,
26+ " Windows"
27+ ],
2328 "Pricing Model" : null ,
24- "Repository" : " https://github.com/example" ,
29+ "Repository" : " https://github.com/example"
2530}
2631```
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ def generate_issue_template():
269269 data = json .load (fd )
270270 template = {}
271271 for item in data :
272- template [item ["name" ]] = None
272+ template [item ["name" ]] = item [ "example" ]
273273 dumped = json .dumps (template , ** json_kwargs )
274274 [lines .append (dd ) for dd in dumped .split ("\n " )]
275275 lines .append ("```" )
Original file line number Diff line number Diff line change 11[
22 {
3- "name" :" Name" ,
4- "type" :" str"
3+ "name" : " Name" ,
4+ "type" : " str" ,
5+ "example" : " AFMsoft"
56 },
67 {
7- "name" :" Description" ,
8- "type" :" str"
8+ "name" : " Description" ,
9+ "type" : " str" ,
10+ "example" : " An example AFM software description"
911 },
1012 {
11- "name" :" Authors" ,
12- "type" :" str"
13+ "name" : " Authors" ,
14+ "type" : " str" ,
15+ "example" : " John Doe"
1316 },
1417 {
15- "name" :" Repository" ,
16- "type" :" url"
18+ "name" : " Repository" ,
19+ "type" : " url" ,
20+ "example" : " https://github.com/example"
1721 },
1822 {
19- "name" :" Homepage" ,
20- "type" :" url"
23+ "name" : " Homepage" ,
24+ "type" : " url" ,
25+ "example" : null
2126 },
2227 {
23- "name" :" Documentation" ,
24- "type" :" url"
28+ "name" : " Documentation" ,
29+ "type" : " url" ,
30+ "example" : " https://readthedocs.io/example"
2531 },
2632 {
27- "name" :" Download Page" ,
28- "type" :" url"
33+ "name" : " Download Page" ,
34+ "type" : " url" ,
35+ "example" : " https://example.com/downloads"
2936 },
3037 {
31- "name" :" Coding Language" ,
32- "type" :" str"
38+ "name" : " Coding Language" ,
39+ "type" : " str" ,
40+ "example" : " Python"
3341 },
3442 {
35- "name" :" License" ,
36- "type" :" str"
43+ "name" : " License" ,
44+ "type" : " str" ,
45+ "example" : " GPL"
3746 },
3847 {
39- "name" :" Operating System" ,
40- "type" :" list"
48+ "name" : " Operating System" ,
49+ "type" : " list" ,
50+ "example" : [" Linux" , " macOS" , " Windows" ]
4151 },
4252 {
43- "name" :" Pricing Model" ,
44- "type" :" str"
53+ "name" : " Pricing Model" ,
54+ "type" : " str" ,
55+ "example" : null
4556 },
4657 {
47- "name" :" Cite" ,
48- "type" :" url"
58+ "name" : " Cite" ,
59+ "type" : " url" ,
60+ "example" : " https://dx.doi.org/10.3.4"
4961 }
5062]
You can’t perform that action at this time.
0 commit comments