Skip to content

Commit

Permalink
minor line break comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yjmantilla committed Jun 14, 2024
1 parent 189104f commit c4989cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gen-static-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ def generate_link_reference_definitions(mypath,graph,extension='.md',only_clean=
url = [x for x in graph['nodes'] if x['id']==tg][0]['url']
refs.append(f'[{tg}]: {url} "{tg}"')
newtext = '\n'.join(refs)
# the two linebreaks are really important for github pages to grab these as references
#TODO: check if that is true
newtext = '\n\n'+begin+'\n'+newtext+'\n'+end+'\n'
if not only_clean:
newdata = newdata+newtext
Expand Down
2 changes: 1 addition & 1 deletion gencfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SUBDIRS_URL_RULE:
- './../'

out_extension : ''
BEGIN : '[//begin]: # "Autogenerated link references for markdown compatibility"' # the two linebreaks are really important for github pages to grab these as references
BEGIN : '[//begin]: # "Autogenerated link references for markdown compatibility"'
END : '[//end]: # "Autogenerated link references"'

ignore_in : ['_site','_includes','.github','.vscode','docs','packages','README','poems']
Expand Down

0 comments on commit c4989cd

Please sign in to comment.