diff --git a/_templates/pdf.html b/_templates/pdf.html new file mode 100644 index 0000000000000000000000000000000000000000..6e07b17b053d3b8211d6b3955f29136ce1e416ae --- /dev/null +++ b/_templates/pdf.html @@ -0,0 +1,8 @@ +{% if pages_slug != "index" %} + {% for proposal_name in proposals %} + {{pages_slug}} + <a class="btn btn-danger btn-sm btn-block" role="button" href="https://www.w3schools.com"> + {{proposal_name}}.pdf + </a> + {% endfor %} +{% endif %} \ No newline at end of file diff --git a/conf.py b/conf.py index 6c5bccfa2cd2945f7924e9f0d781c9e15ea51179..7abc03a6c3d38aba34df817081a83e60c3a76866 100644 --- a/conf.py +++ b/conf.py @@ -116,6 +116,10 @@ html_theme_options = { "footer_start": ["copyright"], "footer_end": ["last-updated"], # "content_footer_items": ["last-updated"], + "secondary_sidebar_items": { + "**": ["page-toc", "edit-this-page", "sourcelink"], + "proposals/template": ["page-toc", "edit-this-page", "sourcelink","pdf"] + } } html_context = { @@ -133,6 +137,7 @@ html_context = { "edit_page_url_template": "{{ my_vcs_site }}{{ file_name }}", "edit_page_provider_name": "OpenBeagle", "my_vcs_site": "https://openbeagle.org/gsoc/gsoc.beagleboard.io/-/edit/main/", + "proposals":["template"] } # -- Options for proposal PDF generation -- @@ -151,6 +156,7 @@ latex_elements = { ) ), } + latex_engine = "xelatex" latex_logo = str("_static/images/logo-latex.pdf") latex_documents = [