@@ -13,7 +13,7 @@ If the space for you template already exists, then you should follow the tutoria
1313
1414This tutorial assumes you have done all the steps in the preceding tutorial: :ref: `prerequisites_to_contributing `.
1515
16- __Note__ at present, this tutorial will require writing access to the TemplateFlow repo.
16+ ** Note ** at present, this tutorial will require writing access to the TemplateFlow repo.
1717If you do not have access here, it may be best to open up an issue asking for a template space to be created.
1818
1919Big picture
@@ -31,25 +31,28 @@ Step 1: create a new dataset
3131First make sure you are in your local templateflow directory.
3232If you do not have a local templateflow copy, run:
3333
34- ::.
34+ .. code-block :: bash
35+
3536 git clone https://github.com/templateflow/templateflow/
3637 cd templateflow
3738
3839 Now set the variable ``TEMPLATENAME `` to whatever your template will be called.
3940Also set your Github username to the variable ``GITHUBUSERNAME ``.
4041Finally, write a description of your template.
4142
42- ::.
43+ .. code-block :: bash
44+
4345 TEMPALTENAME=' tpl-test'
4446 GITHUBUSERNAME=' yourusername'
4547 TEMPALTEDESCRIPTION=" This is a test template"
4648 GITHUBREPO=' templateflow'
4749
48- At the moment, always keep templateflow as GITHUBREPO, this may be changed in the future
50+ At the moment, always keep templateflow as GITHUBREPO, this may be changed in the future.
4951
5052With these variables set you can then run the following code with no modifications:
5153
52- ::.
54+ .. code-block :: bash
55+
5356 datalad create -d . -D " $TEMPALTEDESCRIPTION " $TEMPALTENAME
5457 cd $TEMPALTENAME
5558 datalad create-sibling-github --github-organization $GITHUBREPO --github-login $GITHUBUSERNAME --access-protocol ssh $TEMPALTENAME
@@ -69,14 +72,16 @@ It will then return to the templateflow directory.
6972
7073The 5th line in the above code edits the file .gitmodules to replace:
7174
72- ::.
75+ .. code-block ::
76+
7377 [submodule "tpl-test"]
7478 path = tpl-test
7579 url = ./tpl-test
7680
7781 with:
7882
79- ::.
83+ .. code-block ::
84+
8085 [submodule "tpl-test"]
8186 path = tpl-test
8287 url = https://github.com/templateflow/tpl-test
@@ -90,7 +95,7 @@ Step 2: Add a template_description.json
9095Within this directory we place a template_description.json which is needed in all templates.
9196The json file contains the following:
9297
93- ::.
98+ .. code-block :: json
9499 {
95100 "Authors" : [" Noone" ],
96101 "Acknowledgements" : " Curated and added to TemplateFlow by Thompson WH" ,
0 commit comments