Skip to content

Commit

Permalink
Option to turn off the subgraph links
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed May 12, 2019
1 parent e38018c commit d97dc08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/macrogen/etc/default.yaml
Expand Up @@ -18,6 +18,8 @@ bibliography: https://raw.githubusercontent.com/faustedition/faust-gen-html/mast

xmlroot: https://github.com/faustedition/faust-xml/tree/master/xml/macrogenesis # base for links to xml files

subgraph_links: true # generate links to the interactive subgraph viewer

## Limits
half_interval_mode: light # off, light, always
half_interval_correction: 182.5 # if we only have a start or end date, the other limit is max. this many days away
Expand Down
3 changes: 3 additions & 0 deletions src/macrogen/report.py
Expand Up @@ -350,6 +350,9 @@ def _subgraph_link(*nodes: List[Node], html_content: Optional[str] = None, **opt
Returns:
String containing a HTML link.
"""
if not config.subgraph_links:
return ""

if html_content is None:
html_content = '<i class="fa fa-sliders"></i>'
nodestr = ", ".join(str(node) for node in nodes)
Expand Down

0 comments on commit d97dc08

Please sign in to comment.