Skip to content

Commit

Permalink
Build the site
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 31, 2024
1 parent 18cada4 commit 520d2ba
Show file tree
Hide file tree
Showing 20 changed files with 132 additions and 56 deletions.
10 changes: 5 additions & 5 deletions docs/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h2 class="text-2xl md:text-3-xl lg:text-4xl font-black text-slate-700 dark:text
HydePHP Statistics
</h2>
<p class="text-lg prose dark:prose-invert text-center mx-auto">
Data compiled 2024-12-28 11:27:21.
Data compiled 2024-12-31 11:53:35.
See more at <a href="https://packagist.org/packages/hyde/framework/stats">Packagist</a>
and the <a href="https://git.desilva.se/GitHubAnalyticsExplorer/">Open GitHub Data Analytics Explorer</a>
</p>
Expand All @@ -129,16 +129,16 @@ <h2 class="text-2xl md:text-3-xl lg:text-4xl font-black text-slate-700 dark:text
<div class="bg-white text-slate-900 p-4 pb-8 rounded-lg shadow-xl h-full relative">
<h3 class="font-bold text-2xl text-center mb-3 pb-3">Total Downloads</h3>
<strong id="counter-framework-downloads-total" class="text-5xl font-extrabold text-transparent bg-clip-text bg-gradient-to-br from-purple-500 to-red-600">
19,212
19,234
</strong>
<span class="opacity-75 hover:opacity-100 transition-opacity absolute top-4 right-4 cursor-help text-lg" title="Total downloads for the Hyde/Framework package, counted by packagist.org 2024-12-28 11:27:22">&#9432;</span>
<span class="opacity-75 hover:opacity-100 transition-opacity absolute top-4 right-4 cursor-help text-lg" title="Total downloads for the Hyde/Framework package, counted by packagist.org 2024-12-31 11:53:41">&#9432;</span>
</div>
</div>
<div class="my-4 px-4 w-full md:w-1/2 xl:w-1/3 max-w-md h-auto">
<div class="bg-white text-slate-900 p-4 pb-8 rounded-lg shadow-xl h-full relative">
<h3 class="font-bold text-2xl text-center mb-3 pb-3">Weekly GitHub Views</h3>
<strong id="weekly-views-total" class="text-5xl font-extrabold text-transparent bg-clip-text bg-gradient-to-br from-purple-500 to-red-600">
169
146
</strong>
<span class="opacity-75 hover:opacity-100 transition-opacity absolute top-4 right-4 cursor-help text-lg" title="Average weekly data for hydephp/framework, hydephp/hyde, and hydephp/hydefront, based on the last week.">&#9432;</span>
</div>
Expand All @@ -149,7 +149,7 @@ <h3 class="font-bold text-2xl text-center mb-3 pb-3">Lines of Code</h3>
<strong id="counter-lines-total" class="text-5xl font-extrabold text-transparent bg-clip-text bg-gradient-to-br from-purple-500 to-red-600">
11,359
</strong>
<span class="opacity-75 hover:opacity-100 transition-opacity absolute top-4 right-4 cursor-help text-lg" title="Total lines of code in the Hyde monorepo, counted 2024-12-28 11:27:22">&#9432;</span>
<span class="opacity-75 hover:opacity-100 transition-opacity absolute top-4 right-4 cursor-help text-lg" title="Total lines of code in the Hyde monorepo, counted 2024-12-31 11:53:41">&#9432;</span>
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/1.x/build-tasks.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ <h4 class="sidebar-group-heading text-base font-semibold cursor-pointer dark:gr
</ul>
</li>
<li>
<a href="#error-handling">Error handling</a>
<a href="#error-handling">Error Handling</a>
</li>
<li>
<a href="#helper-methods">Helper methods</a>
<a href="#helper-methods">Helper Methods</a>
<ul>
<li>
<a href="#output-helpers">Output helpers</a>
Expand Down Expand Up @@ -440,9 +440,9 @@ <h3>Programmatic registration<a id="programmatic-registration" href="#programmat
<p>Here is an example of how to do this using a service provider. Though you could technically do it anywhere using the <code>app()</code> helper,
just as long as it's done early enough in the application lifecycle, so it's registered before the build command is executed.</p>
<pre><code data-theme="material-theme-palenight" data-lang="php" class='torchlight' style='background-color: #292D3E; --theme-selection-background: #00000080;'><!-- Syntax highlighted by torchlight.dev --><div class='line'><span style="color: #C792EA;">class</span><span style="color: #A6ACCD;"> </span><span style="color: #FFCB6B;">MyServiceProvider</span><span style="color: #A6ACCD;"> </span><span style="color: #C792EA;">extends</span><span style="color: #A6ACCD;"> </span><span style="color: #FFCB6B;">ServiceProvider</span></div><div class='line'><span style="color: #89DDFF;">{</span></div><div class='line'><span style="color: #A6ACCD;"> </span><span style="color: #C792EA;">public</span><span style="color: #A6ACCD;"> </span><span style="color: #C792EA;">function</span><span style="color: #A6ACCD;"> </span><span style="color: #82AAFF;">boot</span><span style="color: #89DDFF;">():</span><span style="color: #A6ACCD;"> </span><span style="color: #F78C6C;">void</span></div><div class='line'><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">{</span></div><div class='line'><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">$this-&gt;</span><span style="color: #A6ACCD;">app</span><span style="color: #89DDFF;">-&gt;</span><span style="color: #82AAFF;">make</span><span style="color: #89DDFF;">(\</span><span style="color: #A6ACCD;">Hyde</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Framework</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Services</span><span style="color: #89DDFF;">\</span><span style="color: #FFCB6B;">BuildTaskService</span><span style="color: #89DDFF;">::</span><span style="color: #F78C6C;">class</span><span style="color: #89DDFF;">)</span></div><div class='line'><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">-&gt;</span><span style="color: #82AAFF;">registerTask</span><span style="color: #89DDFF;">(\</span><span style="color: #A6ACCD;">MyPackage</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Tasks</span><span style="color: #89DDFF;">\</span><span style="color: #FFCB6B;">MyBuildTask</span><span style="color: #89DDFF;">::</span><span style="color: #F78C6C;">class</span><span style="color: #89DDFF;">);</span></div><div class='line'><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">}</span></div><div class='line'><span style="color: #89DDFF;">}</span></div></code></pre>
<h2>Error handling<a id="error-handling" href="#error-handling" class="heading-permalink" title="Permalink"></a></h2>
<h2>Error Handling<a id="error-handling" href="#error-handling" class="heading-permalink" title="Permalink"></a></h2>
<p>If an exception is thrown in a build task, the build command will catch it and display the error message to the user.</p>
<h2>Helper methods<a id="helper-methods" href="#helper-methods" class="heading-permalink" title="Permalink"></a></h2>
<h2>Helper Methods<a id="helper-methods" href="#helper-methods" class="heading-permalink" title="Permalink"></a></h2>
<h3>Output helpers<a id="output-helpers" href="#output-helpers" class="heading-permalink" title="Permalink"></a></h3>
<p>When a build task is called by the site build command, it gets access to the Laravel and Symfony console output helpers through the <code>$output</code> property.</p>
<pre><code data-theme="material-theme-palenight" data-lang="php" class='torchlight' style='background-color: #292D3E; --theme-selection-background: #00000080;'><!-- Syntax highlighted by torchlight.dev --><div class='line'><span style="color: #C792EA;">public</span><span style="color: #A6ACCD;"> </span><span style="color: #C792EA;">function</span><span style="color: #A6ACCD;"> </span><span style="color: #82AAFF;">handle</span><span style="color: #89DDFF;">():</span><span style="color: #A6ACCD;"> </span><span style="color: #F78C6C;">void</span></div><div class='line'><span style="color: #89DDFF;">{</span></div><div class='line'><span style="color: #A6ACCD;"> </span><span style="color: #676E95;">/** </span><span style="color: #F78C6C;">@var</span><span style="color: #676E95;"> </span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Illuminate</span><span style="color: #89DDFF;">\</span><span style="color: #A6ACCD;">Console</span><span style="color: #89DDFF;">\</span><span style="color: #FFCB6B;">OutputStyle</span><span style="color: #676E95;"> $output */</span></div><div class='line'>&nbsp;</div><div class='line'><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">$this-&gt;</span><span style="color: #A6ACCD;">output</span><span style="color: #89DDFF;">-&gt;</span><span style="color: #82AAFF;">info</span><span style="color: #89DDFF;">(</span><span style="color: #89DDFF;">&#39;</span><span style="color: #C3E88D;">Hello World!</span><span style="color: #89DDFF;">&#39;</span><span style="color: #89DDFF;">);</span></div><div class='line'><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">$this-&gt;</span><span style="color: #A6ACCD;">output</span><span style="color: #89DDFF;">-&gt;</span><span style="color: #82AAFF;">error</span><span style="color: #89DDFF;">(</span><span style="color: #89DDFF;">&#39;</span><span style="color: #C3E88D;">Something went wrong!</span><span style="color: #89DDFF;">&#39;</span><span style="color: #89DDFF;">);</span></div><div class='line'><span style="color: #A6ACCD;"> </span><span style="color: #89DDFF;">$this-&gt;</span><span style="color: #A6ACCD;">output</span><span style="color: #89DDFF;">-&gt;</span><span style="color: #82AAFF;">writeln</span><span style="color: #89DDFF;">(</span><span style="color: #89DDFF;">&#39;</span><span style="color: #C3E88D;">This is a line of text</span><span style="color: #89DDFF;">&#39;</span><span style="color: #89DDFF;">);</span></div><div class='line'><span style="color: #89DDFF;">}</span></div></code></pre>
Expand Down
27 changes: 23 additions & 4 deletions docs/docs/1.x/compile-and-deploy.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HydePHP - Compile and Deploy your site</title>
<title>HydePHP - Compile and Deploy Your Site</title>


<link rel="shortcut icon" href="../../media/favicon.ico" type="image/x-icon">


<link rel="canonical" href="https://hydephp.com/docs/1.x/compile-and-deploy">
<meta name="twitter:title" content="HydePHP - Compile and Deploy your site">
<meta property="og:title" content="HydePHP - Compile and Deploy your site">
<meta name="twitter:title" content="HydePHP - Compile and Deploy Your Site">
<meta property="og:title" content="HydePHP - Compile and Deploy Your Site">


<link rel="sitemap" href="https://hydephp.com/sitemap.xml" type="application/xml" title="Sitemap">
Expand Down Expand Up @@ -183,6 +183,14 @@ <h4 class="sidebar-group-heading text-base font-semibold cursor-pointer dark:gr
</li>
</ul>
</li>
<li>
<a href="#next-steps">Next Steps</a>
<ul>
<li>
<a href="#seo-tips">SEO Tips</a>
</li>
</ul>
</li>
</ul>

</li> </ul>
Expand Down Expand Up @@ -346,7 +354,7 @@ <h4 class="sidebar-group-heading text-base font-semibold cursor-pointer dark:gr
<article id="document" itemscope itemtype="https://schema.org/Article" class="mx-auto lg:ml-8 max-w-3xl p-12 md:px-16 max-w-[1000px] min-h-[calc(100vh_-_4rem)] prose dark:prose-invert torchlight-enabled">

<header id="document-header" class="flex items-center flex-wrap justify-between prose-h1:mb-3">
<h1>Compile and Deploy your site</h1>
<h1>Compile and Deploy Your Site</h1>
</header>
<section id="document-main-content" itemprop="articleBody">
<h2>Running the Build Command<a id="running-the-build-command" href="#running-the-build-command" class="heading-permalink" title="Permalink"></a></h2>
Expand Down Expand Up @@ -401,6 +409,17 @@ <h3>GitHub Pages - CI/CD<a id="github-pages---cicd" href="#github-pages---cicd"
</ul>
<p>By the way, HydePHP.com is hosted on GitHub Pages, and the site is compiled in a GitHub Action workflow that compiles and
deploys the site automatically when the source is updated using <a href="https://github.com/hydephp/hydephp.com/blob/master/.github/workflows/build.yml">this GitHub workflow</a>.</p>
<h2>Next Steps<a id="next-steps" href="#next-steps" class="heading-permalink" title="Permalink"></a></h2>
<p>So what's next? Well, keep creating amazing content, and share it with the world!</p>
<p>We'd love to see your creations, so please share your site with us on Twitter, Facebook, or any other social media platform. Use the hashtag #HydePHP and #MadeWithHydePHP so we can find it!</p>
<h3>SEO Tips<a id="seo-tips" href="#seo-tips" class="heading-permalink" title="Permalink"></a></h3>
<p>While HydePHP takes most of the hard work out of setting up metadata tags for search engines, there are still a few things you can do to improve your site's SEO.</p>
<h4>Set a site URL<a id="set-a-site-url" href="#set-a-site-url" class="heading-permalink" title="Permalink"></a></h4>
<p>This is the most important: Make sure you have set a <code>SITE_URL</code> either in the <code>.env</code> file or in the <code>hyde.php</code> configuration file. This is so that Hyde can generate absolute URLs, which are favored by search engines and required for sitemaps and RSS feeds.</p>
<h4>Sitemaps and RSS Feeds<a id="sitemaps-and-rss-feeds" href="#sitemaps-and-rss-feeds" class="heading-permalink" title="Permalink"></a></h4>
<p>Next, since HydePHP automatically generates sitemaps and RSS feeds, you should take advantage of these by submitting them to search engines. For example, Google Search Console and Bing Webmaster Tools. This will jumpstart the indexing process, and make sure new pages are indexed quickly. You will also be able to see how your site is performing in search results.</p>
<h4>Social sharing<a id="social-sharing" href="#social-sharing" class="heading-permalink" title="Permalink"></a></h4>
<p>Finally, keep sharing your content, so other people can find your site!</p>
</section>
<footer id="document-footer" class="flex items-center flex-wrap mt-8 prose-p:my-3 justify-between text-[90%]">
<p>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/1.x/console-commands.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ <h4 class="sidebar-group-heading text-base font-semibold cursor-pointer dark:gr
<a href="#publish-the-hyde-components-for-customization">Publish the hyde components for customization</a>
</li>
<li>
<a href="#display-all-registered-routes">Display all Registered Routes.</a>
<a href="#display-all-registered-routes">Display All Registered Routes.</a>
</li>
<li>
<a href="#publish-any-publishable-assets-from-vendor-packages">Publish any publishable assets from vendor packages</a>
Expand Down Expand Up @@ -662,7 +662,7 @@ <h4>Arguments<a id="arguments-1" href="#arguments-1" class="heading-permalink" t
</tr>
</tbody>
</table>
<h2>Display all Registered Routes.<a id="display-all-registered-routes" href="#display-all-registered-routes" class="heading-permalink" title="Permalink"></a></h2>
<h2>Display All Registered Routes.<a id="display-all-registered-routes" href="#display-all-registered-routes" class="heading-permalink" title="Permalink"></a></h2>
<p><a name="route-list" style="display: inline-block; position: absolute; margin-top: -5rem;"></a></p>
<pre><code data-theme="material-theme-palenight" data-lang="bash" class='torchlight' style='background-color: #292D3E; --theme-selection-background: #00000080;'><!-- Syntax highlighted by torchlight.dev --><div class='line'><span style="color: #FFCB6B;">php</span><span style="color: #A6ACCD;"> </span><span style="color: #C3E88D;">hyde</span><span style="color: #A6ACCD;"> </span><span style="color: #C3E88D;">route:list</span></div></code></pre>
<p>Display all registered routes.</p>
Expand Down
Loading

0 comments on commit 520d2ba

Please sign in to comment.