You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h1>Acknowledgements<aclass="headerlink" href="#acknowledgements" title="Permalink to this heading">¶</a></h1>
44
+
<p>The creation of this documentation was supported by the National Science Foundation Awards 2112727 and 2410721, Dept. of Energy Award DE‐SC-0022271 and Fermi National Accelerator Laboratory.</p>
<liclass="nav-item nav-item-this"><ahref="">Notes on sphinx</a></li>
38
+
</ul>
39
+
</div>
40
+
41
+
<divclass="document">
42
+
<divclass="documentwrapper">
43
+
<divclass="bodywrapper">
44
+
<divclass="body" role="main">
45
+
46
+
<divclass="section" id="notes-on-sphinx">
47
+
<h1>Notes on sphinx<aclass="headerlink" href="#notes-on-sphinx" title="Permalink to this heading">¶</a></h1>
48
+
<p>This was my first sphinx project.</p>
49
+
<p>I started with the <aclass="reference external" href="https://www.sphinx-doc.org/en/master/tutorial/getting-started.html">https://www.sphinx-doc.org/en/master/tutorial/getting-started.html</a> tutorial so I have a similar structure.</p>
50
+
<p>I used the napoleon theme that Igor Mandrichenko used from <aclass="reference external" href="https://metacat.readthedocs.io/en/latest/">https://metacat.readthedocs.io/en/latest/</a></p>
51
+
<divclass="section" id="rst-format">
52
+
<h2>rst format<aclass="headerlink" href="#rst-format" title="Permalink to this heading">¶</a></h2>
<li><p>the need to keep track of indentation and blank lines with poor error messages is painful</p></li>
58
+
<li><p>indentation differences when adding comments to code others wrote can be interesting</p></li>
59
+
</ul>
60
+
</div></blockquote>
61
+
</div>
62
+
<divclass="section" id="github-actions">
63
+
<h2>Github actions<aclass="headerlink" href="#github-actions" title="Permalink to this heading">¶</a></h2>
64
+
<p>I set up github actions to build on my github page hschellman/DataChallengeWork-loginator which is based on Jake Calcutt’s data dispatcher test system</p>
65
+
<p>The github actions had some issues:</p>
66
+
<blockquote>
67
+
<div><ul>
68
+
<li><p>It assumed the code was in main - I had to move to develop</p></li>
69
+
<li><p>I had to add a gh-pages branch by hand</p></li>
70
+
<li><p>I adapted <aclass="reference external" href="https://github.com/ammaraskar/sphinx-action">https://github.com/ammaraskar/sphinx-action</a> from Ammar Askar</p></li>
71
+
<li><p>The action can be found at <aclass="reference external" href="https://github.com/hschellman/DataChallengeWork-loginator/blob/develop/.github/workflows/sphinx.yml">sphinx.yml</a></p></li>
72
+
<li><p>I was not able to get the programoutput extension to work as adding a pip install for it did not work. So command line syntax is added by hand.</p></li>
<p>to the <cite>conf.py</cite> to avoid errors due to imports of external code. I just got blanks otherwise.</p>
78
+
</li>
79
+
</ul>
80
+
</div></blockquote>
81
+
</div>
82
+
<divclass="section" id="google-indexing-notes">
83
+
<h2>Google indexing Notes<aclass="headerlink" href="#google-indexing-notes" title="Permalink to this heading">¶</a></h2>
84
+
<p># Go to <aclass="reference external" href="https://search.google.com/search-console/welcome?hl=en&utm_source=wmx&utm_medium=deprecation-pane&utm_content=home">Google Search Console</a></p>
85
+
<p># choose URL prefix and enter your top level URL you will get back a</p>
86
+
<p># I github added build/html (just the directories) to github to be in the same directory as <cite>index.html</cite> and then placed the key file I got from google in that directory.</p>
87
+
<p># I then added that file to github, committed and pushed.</p>
88
+
<p># Once the action to build the docs go to the search console again and go to URL inspection. You should be able to check that the URL exists and request indexing.</p>
0 commit comments