Skip to content

Commit

Permalink
[FEATURE] Add local option to contents directive
Browse files Browse the repository at this point in the history
resolves #901
  • Loading branch information
linawolf committed Mar 24, 2024
1 parent 06da2df commit d595ad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RestructuredText/Directives/ContentsDirective.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function process(

return (new ContentMenuNode([new SectionMenuEntryNode($absoluteUrl)]))
->withOptions($this->optionsToArray($options))
->withCaption($directive->getDataNode());
->withCaption($directive->getDataNode())
->withLocal($directive->hasOption('local'));
}
}

0 comments on commit d595ad5

Please sign in to comment.