<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Theme development workflow ?]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">TL;DR How can I seamlessly code and preview a grav theme?</p>
<p dir="auto">I started by coding a grav theme using only the app's file manager! This was quite adventurous.</p>
<p dir="auto">To "simplify" things, I bundled my modest work into a git repository. I followed the outline of the grav theme file structure because I thought the theme could be added to the grav package manager.</p>
<p dir="auto">Unfortunately, due to some setup, grav devs only add themes to the package manager if they are hosted on GitHub <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=6ec0a15ae96" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title="):" alt="😞" /></p>
<p dir="auto">So now I'm looking for a way to work on the repo while easily previewing the theme.</p>
<ol>
<li>Is it possible to update a manually installed theme other than by replacing the files in the theme directory?</li>
<li>Is it possible to view a grav site locally, like Hugo etc. ?</li>
<li>The grav-git-sync plugin synchronizes the user directory containing the theme. But in that case, the repository does not correspond to an installable theme package.
<ul>
<li>If you synchronize a grav site with git-sync (user/theme folder) where the theme was manually installed, the theme seems to be a git submodule. But changes in the submodule don't seem to be picked up by the git-sync plugin.</li>
</ul>
</li>
<li>Is it possible/recommended to use git within the App Terminal? To manually pull the changes into the theme directory.
<ul>
<li><s>When browsing to the theme in the terminal <code>/app/code/user/themes/doric</code> and executing <code>sudo -u www-data git fetch</code> I get <code>git@codeberg.org: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.</code>. But the same operation works in the official <code>/app/code/user/themes/quark</code> theme.</s> (origin URL has to be the https address of the repo).</li>
</ul>
</li>
<li>Bonus: Wouldn't a web IDE be particularly useful in this case?</li>
</ol>
<p dir="auto">Thanks for sharing your thoughts or workflow!</p>
]]></description><link>https://forum.cloudron.io/topic/12985/theme-development-workflow</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 08:33:07 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/12985.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 21 Dec 2024 14:59:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Theme development workflow ? on Wed, 08 Jan 2025 12:59:24 GMT]]></title><description><![CDATA[<p dir="auto">Yes indeed, that's how I proceeded in the end. It worked fairly well.</p>
<p dir="auto">BTW, I just came across the remote development feature of the Zed editor (<a href="https://zed.dev/docs/remote-development" target="_blank" rel="noopener noreferrer nofollow ugc">https://zed.dev/docs/remote-development</a>). Don't know if that could work in an app/code/ directory but if, it will make coding Grav easier.</p>
]]></description><link>https://forum.cloudron.io/post/99540</link><guid isPermaLink="true">https://forum.cloudron.io/post/99540</guid><dc:creator><![CDATA[mononym]]></dc:creator><pubDate>Wed, 08 Jan 2025 12:59:24 GMT</pubDate></item><item><title><![CDATA[Reply to Theme development workflow ? on Sun, 22 Dec 2024 13:25:20 GMT]]></title><description><![CDATA[<p dir="auto">Since you got no.4 working, is that not what you want? git pull will replace the files in the theme directory (1) . Don't know about grav specific stuff though.</p>
]]></description><link>https://forum.cloudron.io/post/98714</link><guid isPermaLink="true">https://forum.cloudron.io/post/98714</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Sun, 22 Dec 2024 13:25:20 GMT</pubDate></item></channel></rss>