Skip to content

Commit 3f5409f

Browse files
Built site for gh-pages
1 parent b2893f5 commit 3f5409f

File tree

5 files changed

+95
-32
lines changed

5 files changed

+95
-32
lines changed

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
479a466c
1+
db0986cd

docs/authentication.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,9 @@
139139
<h2 id="toc-title">On this page</h2>
140140

141141
<ul>
142-
<li><a href="#security-features" id="toc-security-features" class="nav-link active" data-scroll-target="#security-features">Security features</a>
143-
<ul class="collapse">
142+
<li><a href="#security-features" id="toc-security-features" class="nav-link active" data-scroll-target="#security-features">Security features</a></li>
144143
<li><a href="#registration-and-login-flow" id="toc-registration-and-login-flow" class="nav-link" data-scroll-target="#registration-and-login-flow">Registration and login flow</a></li>
145144
<li><a href="#password-reset-flow" id="toc-password-reset-flow" class="nav-link" data-scroll-target="#password-reset-flow">Password reset flow</a></li>
146-
</ul></li>
147145
</ul>
148146
</nav>
149147
</div>
@@ -203,17 +201,18 @@ <h2 class="anchored" data-anchor-id="security-features">Security features</h2>
203201
</ul></li>
204202
</ol>
205203
<p>The diagrams below show the main authentication flows.</p>
206-
<section id="registration-and-login-flow" class="level3">
207-
<h3 class="anchored" data-anchor-id="registration-and-login-flow">Registration and login flow</h3>
204+
</section>
205+
<section id="registration-and-login-flow" class="level2">
206+
<h2 class="anchored" data-anchor-id="registration-and-login-flow">Registration and login flow</h2>
208207
<div class="quarto-figure quarto-figure-center">
209208
<figure class="figure">
210209
<p><img src="static/auth_flow.png" class="img-fluid figure-img"></p>
211210
<figcaption>Registration and login flow</figcaption>
212211
</figure>
213212
</div>
214213
</section>
215-
<section id="password-reset-flow" class="level3">
216-
<h3 class="anchored" data-anchor-id="password-reset-flow">Password reset flow</h3>
214+
<section id="password-reset-flow" class="level2">
215+
<h2 class="anchored" data-anchor-id="password-reset-flow">Password reset flow</h2>
217216
<div class="quarto-figure quarto-figure-center">
218217
<figure class="figure">
219218
<p><img src="static/reset_flow.png" class="img-fluid figure-img"></p>
@@ -222,7 +221,6 @@ <h3 class="anchored" data-anchor-id="password-reset-flow">Password reset flow</h
222221
</div>
223222

224223

225-
</section>
226224
</section>
227225

228226
</main> <!-- /main -->

docs/contributing.html

Lines changed: 65 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,14 @@ <h2 id="toc-title">On this page</h2>
175175
<ul>
176176
<li><a href="#contributors" id="toc-contributors" class="nav-link active" data-scroll-target="#contributors">Contributors</a>
177177
<ul class="collapse">
178-
<li><a href="#render-the-documentation" id="toc-render-the-documentation" class="nav-link" data-scroll-target="#render-the-documentation">Render the documentation</a></li>
178+
<li><a href="#opening-issues-and-bug-reports" id="toc-opening-issues-and-bug-reports" class="nav-link" data-scroll-target="#opening-issues-and-bug-reports">Opening issues and bug reports</a></li>
179+
<li><a href="#contributing-code" id="toc-contributing-code" class="nav-link" data-scroll-target="#contributing-code">Contributing code</a></li>
180+
<li><a href="#rendering-the-documentation" id="toc-rendering-the-documentation" class="nav-link" data-scroll-target="#rendering-the-documentation">Rendering the documentation</a></li>
179181
</ul></li>
180182
<li><a href="#maintainers" id="toc-maintainers" class="nav-link" data-scroll-target="#maintainers">Maintainers</a>
181183
<ul class="collapse">
182-
<li><a href="#increment-the-version" id="toc-increment-the-version" class="nav-link" data-scroll-target="#increment-the-version">Increment the version</a></li>
183-
<li><a href="#publish-the-documentation" id="toc-publish-the-documentation" class="nav-link" data-scroll-target="#publish-the-documentation">Publish the documentation</a></li>
184+
<li><a href="#git-flow" id="toc-git-flow" class="nav-link" data-scroll-target="#git-flow">Git flow</a></li>
185+
<li><a href="#publishing-the-documentation" id="toc-publishing-the-documentation" class="nav-link" data-scroll-target="#publishing-the-documentation">Publishing the documentation</a></li>
184186
</ul></li>
185187
</ul>
186188
</nav>
@@ -209,28 +211,77 @@ <h1 class="title">Contributing</h1>
209211

210212
<section id="contributors" class="level2">
211213
<h2 class="anchored" data-anchor-id="contributors">Contributors</h2>
212-
<p>Fork the repository, create a new branch, make your changes, and submit a pull request.</p>
213-
<section id="render-the-documentation" class="level3">
214-
<h3 class="anchored" data-anchor-id="render-the-documentation">Render the documentation</h3>
215-
<p>The README and documentation website are rendered with <a href="https://quarto.org/docs/">Quarto</a>. Make changes to the <code>.qmd</code> files in the root folder and the <code>docs</code> folder. Then run the following commands to render:</p>
214+
<section id="opening-issues-and-bug-reports" class="level3">
215+
<h3 class="anchored" data-anchor-id="opening-issues-and-bug-reports">Opening issues and bug reports</h3>
216+
<p>When opening a new issue or submitting a bug report, please include:</p>
217+
<ol type="1">
218+
<li>A clear, descriptive title</li>
219+
<li>For bug reports:
220+
<ul>
221+
<li>Description of the expected behavior</li>
222+
<li>Description of the actual behavior</li>
223+
<li>Steps to reproduce the issue</li>
224+
<li>Version information (OS, Python version, package version)</li>
225+
<li>Any relevant error messages or screenshots</li>
226+
</ul></li>
227+
<li>For feature requests:
228+
<ul>
229+
<li>Description of the proposed feature</li>
230+
<li>Use case or motivation for the feature</li>
231+
<li>Any implementation suggestions (optional)</li>
232+
</ul></li>
233+
</ol>
234+
<p>Labels help categorize issues: - Use <code>bug</code> for reporting problems - Use <code>enhancement</code> for feature requests - Use <code>documentation</code> for documentation improvements - Use <code>question</code> for general queries</p>
235+
</section>
236+
<section id="contributing-code" class="level3">
237+
<h3 class="anchored" data-anchor-id="contributing-code">Contributing code</h3>
238+
<p>To contribute code to the project:</p>
239+
<ol type="1">
240+
<li>Fork the repository and clone your fork locally</li>
241+
<li>Create a new branch from <code>main</code> with a descriptive name</li>
242+
<li>Review the <a href="https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/customization.html">customization</a>, <a href="https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/architecture.html">architecture</a>, and <a href="https://promptlytechnologies.com/fastapi-jinja2-postgres-webapp/authentication.html">authentication</a> pages for guidance on design patterns and code structure and style</li>
243+
<li>Ensure all tests pass, including <code>mypy</code> type checking</li>
244+
<li>Stage, commit, and push your changes to the branch:
245+
<ul>
246+
<li>Use clear, descriptive commit messages</li>
247+
<li>Keep commits focused and atomic</li>
248+
</ul></li>
249+
<li>Submit your pull request:
250+
<ul>
251+
<li>Provide a clear description of the changes</li>
252+
<li>Link to any related issues</li>
253+
</ul></li>
254+
</ol>
255+
</section>
256+
<section id="rendering-the-documentation" class="level3">
257+
<h3 class="anchored" data-anchor-id="rendering-the-documentation">Rendering the documentation</h3>
258+
<p>The README and documentation website are rendered with <a href="https://quarto.org/docs/">Quarto</a>. If you ,make changes to the <code>.qmd</code> files in the root folder and the <code>docs</code> folder, run the following commands to re-render the docs:</p>
216259
<div class="sourceCode" id="cb1"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="co"># To render the documentation website</span></span>
217260
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="ex">quarto</span> render</span>
218261
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="co"># To render the README</span></span>
219262
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="ex">quarto</span> render index.qmd <span class="at">--output-dir</span> . <span class="at">--output</span> README.md <span class="at">--to</span> gfm</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
220263
<p>Due to a quirk of Quarto, an unnecessary <code>index.html</code> file is created in the root folder when the README is rendered. This file can be safely deleted.</p>
264+
<p>Note that even if your pull request is merged, your changes will not be reflected on the live website until a maintainer republishes the docs.</p>
221265
</section>
222266
</section>
223267
<section id="maintainers" class="level2">
224268
<h2 class="anchored" data-anchor-id="maintainers">Maintainers</h2>
225-
<section id="increment-the-version" class="level3">
226-
<h3 class="anchored" data-anchor-id="increment-the-version">Increment the version</h3>
227-
<p>Run the following command to increment the version:</p>
228-
<div class="sourceCode" id="cb2"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">poetry</span> version patch minor</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
269+
<section id="git-flow" class="level3">
270+
<h3 class="anchored" data-anchor-id="git-flow">Git flow</h3>
271+
<p>When creating new features,</p>
272+
<ol type="1">
273+
<li>Open a Github issue with the label <code>feature</code> and assign it to yourself.</li>
274+
<li>Create a new branch from the issue sidebar.</li>
275+
<li>Follow the instructions in the popup to check out the branch locally and make your changes on the branch.</li>
276+
<li>Commit your changes and push to the branch.</li>
277+
<li>When you are ready to merge, open a pull request from the branch to main.</li>
278+
<li>Assign someone else for code review.</li>
279+
</ol>
229280
</section>
230-
<section id="publish-the-documentation" class="level3">
231-
<h3 class="anchored" data-anchor-id="publish-the-documentation">Publish the documentation</h3>
281+
<section id="publishing-the-documentation" class="level3">
282+
<h3 class="anchored" data-anchor-id="publishing-the-documentation">Publishing the documentation</h3>
232283
<p>To publish the documentation to GitHub Pages, run the following command:</p>
233-
<div class="sourceCode" id="cb3"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">quarto</span> publish gh-pages</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
284+
<div class="sourceCode" id="cb2"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">quarto</span> publish gh-pages</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
234285

235286

236287
</section>

0 commit comments

Comments
 (0)