You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/getting-started.md
+34-2
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,17 @@ excluded_in_search: true
36
36
---
37
37
```
38
38
39
-
The example above is for a css file in the assets folder that is used as a template,
40
-
but should not be included in search.
39
+
The example above is for a css file in the assets folder that is used as a template, but should not be included in search. If you need to disable search entirely for a page, you can add the `disable_search` header:
40
+
41
+
```
42
+
---
43
+
layout: null
44
+
disable_search: true
45
+
---
46
+
```
47
+
48
+
Disabling search will remove the search box at the top.
49
+
41
50
42
51
### External Search
43
52
@@ -47,6 +56,29 @@ For example, on an HPC site I'd want a tag like "mpi" to do a search on
47
56
[http://ask.cyberinfrastructure.org](http://ask.cyberinfrastructure.org) for mpi.
48
57
See the [tags](#tags) section below for how to configure this.
49
58
59
+
60
+
### Discourse Forum
61
+
62
+
If you have a discourse forum that you want to show questions from,
63
+
there is an [easy way](https://meta.discourse.org/t/embedding-a-list-of-discourse-topics-in-another-site/125911) to embed them here. Specifically, there is an include `{% raw %}{% include embed/discourse.html %}{% endraw %}` that is deployed at [/forum]({{ site.baseurl }}/forum/) and added to the table of contents under Extra -> Discussion Forum. You can add this include to wherever you want the questions to appear. The follow parameters are defined in the config.yml:
discourse_tags: null # comma separated string, leave null to not filter
70
+
```
71
+
72
+
For the above, we embed 10 topics from the stanford-research-computing category of AskCI, and render 10 per page. Since there are few topics, we don't filter down to tags. If we did, we should provide a list of comma separated values.
73
+
The page looks like this and is [live here]({{ site.baseurl }}/forum/):
Note that you aren't required to only embed one category - you can easily modify the code to include more than one by copy pasting the `d-topics-list`.
78
+
79
+
{% include alert.html type="info" content="To use this for your discourse site, you must enable the 'embed topics' setting." %}
80
+
81
+
50
82
### Documentation
51
83
52
84
Documentation pages should be written in the `docs` folder of the repository,
0 commit comments