Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Commit 6a9dbcc

Browse files
carljparkerfacebook-github-bot
authored andcommitted
TOC: Move command reference above build rules reference
Summary: Move the Buck command reference above the build rules so that it is "above the fold" and more discoverable for our users. Reviewed By: ttsugriy fbshipit-source-id: aca25bbfbd
1 parent 2a815db commit 6a9dbcc

File tree

1 file changed

+31
-21
lines changed

1 file changed

+31
-21
lines changed

docs/__table_of_contents.soy

+31-21
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@
268268
{param text: 'Skylark' /}
269269
{/call}
270270
</ul>
271+
{call .tocCommands}
272+
{param navid: $navid /}
273+
{/call}
271274
<h3>Build Rules</h3>
272275
<ul>
273276
// Ugh, closure doesn't have the concept of sorting, so we cannot control the order without
@@ -394,6 +397,34 @@
394397
{call skylark.tableOfContents}
395398
{param navid: $navid /}
396399
{/call}
400+
<h3>Extending Buck</h3>
401+
<ul>
402+
{call navigation.link}
403+
{param currentnavid: $navid /}
404+
{param folder: 'extending' /}
405+
{param page: 'macros' /}
406+
{param text: 'Custom Macros' /}
407+
{/call}
408+
{call navigation.link}
409+
{param currentnavid: $navid /}
410+
{param folder: 'extending' /}
411+
{param page: 'rules' /}
412+
{param text: 'Custom Rules' /}
413+
{/call}
414+
{call navigation.link}
415+
{param currentnavid: $navid /}
416+
{param folder: 'extending' /}
417+
{param page: 'e2e_tests' /}
418+
{param text: 'Building E2E Tests for Buck' /}
419+
{/call}
420+
</ul>
421+
{/template}
422+
423+
/**
424+
* Table of contents for Buck commands section.
425+
* @param navid The current page's navigation id.
426+
*/
427+
{template .tocCommands}
397428
<h3>Commands</h3>
398429
<ul>
399430
{call navigation.link}
@@ -444,25 +475,4 @@
444475
{param text: 'Exit Codes' /}
445476
{/call}
446477
</ul>
447-
<h3>Extending Buck</h3>
448-
<ul>
449-
{call navigation.link}
450-
{param currentnavid: $navid /}
451-
{param folder: 'extending' /}
452-
{param page: 'macros' /}
453-
{param text: 'Custom Macros' /}
454-
{/call}
455-
{call navigation.link}
456-
{param currentnavid: $navid /}
457-
{param folder: 'extending' /}
458-
{param page: 'rules' /}
459-
{param text: 'Custom Rules' /}
460-
{/call}
461-
{call navigation.link}
462-
{param currentnavid: $navid /}
463-
{param folder: 'extending' /}
464-
{param page: 'e2e_tests' /}
465-
{param text: 'Building E2E Tests for Buck' /}
466-
{/call}
467-
</ul>
468478
{/template}

0 commit comments

Comments
 (0)