Skip to content

Commit 71b93fa

Browse files
committed
helpfulbox is referencing section
1 parent b968b9d commit 71b93fa

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

_includes/helpful_box.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% capture directory %}{% if page.platform == "macos" %}ios{% else %}{{ page.platform }}{% endif %}{% endcapture %}
2+
{% capture directory %}{% if include.section" %}{{include.section}}{% else %}{{ directory }}{% endif %}{% endcapture %}
23

34
<div class="helpful">
45
<span>Want to contribute to this doc? <a href="https://github.com/{{ site.repository }}/tree/gh-pages/_includes/{{ directory | downcase }}">Edit this section.</a></span>

_layouts/guide.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060
{% capture section_include %}{% include {{ section }} %}{% endcapture %}
6161
<div data-source="{{ section }}">
6262
{{ section_include | markdownify }}
63-
{% include helpful_box.html %}
63+
{% include helpful_box.html section=section %}
6464
</div>
6565
{% endfor %}
66-
66+
{{ content }}
6767
</div>
6868

6969
</div>
@@ -76,14 +76,14 @@
7676
</div><!-- /.site__wrapper -->
7777

7878
<script src="{{ site.baseurl }}/assets/js/bundle.js"></script>
79-
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
79+
<!-- <script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
8080
<script type="text/javascript"> docsearch({
8181
apiKey: '3d4445ed639f81888d1a5987d54fb68e',
8282
indexName: 'parse',
8383
inputSelector: '#algolia-doc-search',
8484
algoliaOptions: { 'facetFilters': ["tags:{{ page.platform | downcase }}"] }, // android, arduino, cloudcode, dotnet, embedded_c, ios, js, macos, parse-server, php, rest, unity
8585
debug: false // Set debug to true if you want to inspect the dropdown
8686
});
87-
</script>
87+
</script> -->
8888
{% include lazyload.html %}
8989
</body>

0 commit comments

Comments
 (0)