Skip to content

Commit

Permalink
Deployed 6f0bd40 with MkDocs version: 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Feb 16, 2025
1 parent 14f7f8d commit 427cbc1
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions architecture/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@

<h1 id="architecture">Architecture</h1>
<p>Some familiarity with <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#importing_modules_using_import_maps">JavaScript modules</a> as well as with Symfony's <a href="https://symfony.com/doc/current/frontend/asset_mapper.html">Asset Mapper</a> component is recommended in order to follow this section.</p>
<p>The ChesslaBlab website is a multi-page application (MPA) that is not adhering to the MVC architectural pattern. The controller actions are basically sending an HTML document to the browser on each request. The business logic is implemented in the chess server.</p>
<p>In this website architecture in particular, there is no model layer (M) and as a result the Controller layer (C) remains quite basic as in the following example. The main reason behind a multi-page architecture like this one as opposed to a single-page architecture is that we want the pages to be indexed by web crawlers.</p>
<p>The ChesslaBlab website is a multi-page application (MPA) where controller actions are basically sending an HTML document to the browser on each request. The business logic is implemented in the chess server, and as a result the controller layer remains thin as in the following example.</p>
<pre><code class="language-php">&lt;?php

namespace App\Controller\Pages\Play;
Expand All @@ -112,7 +111,7 @@ <h1 id="architecture">Architecture</h1>
}
}
</code></pre>
<p>As a rule of thumb, there is a <code>.twig.html</code> file and a <code>.js</code> file associated to each controller action. So the structure of the <a href="https://github.com/chesslablab/website/tree/main/src/Controller/Pages">App\Controller\Pages</a> namespace is mirroring the structure of both the <a href="https://github.com/chesslablab/website/tree/main/templates/pages">templates/pages</a> folder and the <a href="https://github.com/chesslablab/website/tree/main/assets/js/pages">assets/js/pages</a> folder.</p>
<p>As a rule of thumb, there is a <code>.twig.html</code> file and a <code>.js</code> file associated to each controller action.</p>
<ul>
<li><a href="https://github.com/chesslablab/website/blob/main/src/Controller/Pages/Play/ComputerController.php">src/Controller/Pages/Play/ComputerController.php</a></li>
<li><a href="https://github.com/chesslablab/website/blob/main/templates/pages/play/computer/index.html.twig">templates/pages/play/computer/index.html.twig</a></li>
Expand Down
Binary file removed featured_animation.gif
Binary file not shown.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,5 +369,5 @@ <h4 class="modal-title" id="keyboardModalLabel">Keyboard Shortcuts</h4>

<!--
MkDocs version : 1.1.2
Build Date UTC : 2025-01-09 17:36:45.240147+00:00
Build Date UTC : 2025-02-16 16:50:07.501151+00:00
-->
Binary file added readme_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url>
<loc>https://website.chesslablab.org/architecture/</loc>
<lastmod>2025-01-09</lastmod>
<lastmod>2025-02-16</lastmod>
<changefreq>daily</changefreq>
</url><url>
<loc>https://website.chesslablab.org/blog/</loc>
<lastmod>2025-01-09</lastmod>
<lastmod>2025-02-16</lastmod>
<changefreq>daily</changefreq>
</url><url>
<loc>https://website.chesslablab.org/html-iframes/</loc>
<lastmod>2025-01-09</lastmod>
<lastmod>2025-02-16</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>
Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit 427cbc1

Please sign in to comment.