Skip to content

Commit dfb8431

Browse files
committed
Page updates
1 parent 7e72802 commit dfb8431

File tree

3 files changed

+12
-21
lines changed

3 files changed

+12
-21
lines changed

internal/http/templates/index.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ <h2 class="text-2xl font-bold mb-6">Package naming</h2>
9494
</div>
9595

9696
<h2 class="text-2xl font-bold mb-4">Usage</h2>
97-
<p class="text-gray-600 mb-4">Add the repository to your <code class="text-sm font-mono bg-gray-100 px-1.5 py-0.5 rounded border border-gray-200/40">composer.json</code>:</p>
97+
<p class="text-gray-600 mb-4">Example <code class="text-sm font-mono bg-gray-100 px-1.5 py-0.5 rounded border border-gray-200/40">composer.json</code> for standalone WordPress projects:</p>
9898
<div class="rounded-xl border border-gray-200/60 overflow-hidden mb-12">
9999
<div class="bg-gray-50/50 px-4 py-2 text-xs text-gray-500 border-b border-gray-200/40">composer.json</div>
100100
<pre class="p-4 text-sm font-mono leading-relaxed overflow-x-auto"><code>{
@@ -110,12 +110,20 @@ <h2 class="text-2xl font-bold mb-4">Usage</h2>
110110
<span class="text-green-700">"composer/installers"</span>: <span class="text-green-700">"^2.2"</span>,
111111
<span class="text-green-700">"wp-plugin/woocommerce"</span>: <span class="text-green-700">"^10.0"</span>,
112112
<span class="text-green-700">"wp-theme/twentytwentyfive"</span>: <span class="text-green-700">"^1.0"</span>
113+
},
114+
<span class="text-green-700">"extra"</span>: {
115+
<span class="text-green-700">"installer-paths"</span>: {
116+
<span class="text-green-700">"wp-content/plugins/{$name}/"</span>: [<span class="text-green-700">"type:wordpress-plugin"</span>],
117+
<span class="text-green-700">"wp-content/mu-plugins/{$name}/"</span>: [<span class="text-green-700">"type:wordpress-muplugin"</span>],
118+
<span class="text-green-700">"wp-content/themes/{$name}/"</span>: [<span class="text-green-700">"type:wordpress-theme"</span>]
119+
}
113120
}
114121
}</code></pre>
115122
</div>
123+
<p class="text-sm text-gray-500 mt-1 mb-12"><a href="https://github.com/roots/bedrock" class="text-brand-primary hover:underline">Bedrock</a> already comes configured for both WP Composer and the <code class="text-xs font-mono bg-gray-100 px-1.5 py-0.5 rounded border border-gray-200/40">roots/wordpress</code> package.</p>
116124

117125
<h2 class="text-2xl font-bold mb-4">Roots WordPress packages</h2>
118-
<p class="text-gray-600 mb-4">WP Composer is built by <a href="https://roots.io" class="font-medium text-gray-900 hover:text-brand-primary transition-colors">Roots</a> and is the recommended repository for use alongside the Roots WordPress packaging ecosystem:</p>
126+
<p class="text-gray-600 mb-4"><a href="https://roots.io" class="font-medium text-gray-900 hover:text-brand-primary transition-colors">Roots</a> also provides WordPress core as Composer packages:</p>
119127
<div class="rounded-xl border border-gray-200/60 overflow-hidden mb-4">
120128
<table class="w-full text-sm">
121129
<tbody>

internal/http/templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
<div class="mx-auto max-w-6xl px-4 sm:px-6 lg:px-8 py-8 flex flex-col sm:flex-row items-center justify-between gap-4">
5858
<p class="text-sm text-gray-500 flex items-center gap-1">Built by <a href="https://roots.io" class="inline-flex items-center gap-1 font-medium text-brand-primary hover:text-brand-primary/80 transition-colors" rel="noopener"><svg class="h-3 w-auto translate-y-px" viewBox="0 0 80 75" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M56.604 59.32c-5.97-5.962-9.26-13.89-9.26-22.318V23.958a.815.815 0 1 0-1.631 0c0 8.43-3.286 16.36-9.255 22.32L16.743 65.961a.813.813 0 0 0-.237.643.81.81 0 0 0 .34.6C23.665 72.05 31.672 74.61 40 74.61s16.338-2.56 23.157-7.406a.79.79 0 0 0 .334-.6.796.796 0 0 0-.227-.643l-6.66-6.64zm-35.38-48.398V.816A.813.813 0 0 0 20 .11C7.663 7.242-.001 20.484-.001 34.67c0 1.136.06 2.352.188 3.718.032.312.24.58.537.694a.979.979 0 0 0 .278.044.816.816 0 0 0 .574-.236L15.32 25.164a19.997 19.997 0 0 0 5.903-14.242zM59.997.11a.808.808 0 0 0-.816 0 .82.82 0 0 0-.408.706v36.186c0 5.378 2.103 10.437 5.911 14.242l6.655 6.65a.82.82 0 0 0 .579.241c.022 0 .046 0 .07-.005a.852.852 0 0 0 .601-.338C77.437 50.979 80 42.985 80 34.669 80 20.484 72.341 7.242 59.998.11zM28.377 38.203L8.662 57.894a.815.815 0 0 1-.579.241c-.021 0-.044 0-.065-.005a.827.827 0 0 1-.596-.338 39.91 39.91 0 0 1-2.962-4.84.824.824 0 0 1 .15-.957l18.793-18.76c5.967-5.965 9.253-13.887 9.253-22.313a.816.816 0 0 1 1.631 0v13.036c0 5.38-2.097 10.44-5.91 14.245z" fill-rule="nonzero"/></svg>roots.io</a></p>
5959
<nav aria-label="Footer" class="flex flex-wrap justify-center sm:justify-end items-center gap-x-6 gap-y-2">
60-
<a href="/roots-wordpress" class="text-sm text-gray-500 hover:text-gray-900 transition-colors">WordPress Core</a>
6160
<a href="/wp-composer-vs-wpackagist" class="text-sm text-gray-500 hover:text-gray-900 transition-colors">WP Composer vs WPackagist</a>
61+
<a href="/roots-wordpress" class="text-sm text-gray-500 hover:text-gray-900 transition-colors">WordPress Core</a>
6262
<a href="https://discourse.roots.io/" class="text-sm text-gray-500 hover:text-gray-900 transition-colors">Discourse</a>
6363
<a href="https://github.com/roots/wp-composer" class="text-sm text-gray-500 hover:text-gray-900 transition-colors">GitHub</a>
6464
<a href="https://x.com/rootswp" class="text-sm text-gray-500 hover:text-gray-900 transition-colors">@rootswp</a>

internal/http/templates/roots_wordpress.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<div class="absolute inset-0 bg-gradient-to-b from-brand-lightest/40 to-transparent"></div>
2222
<div class="relative mx-auto max-w-3xl px-4 sm:px-6 lg:px-8 pt-16 pb-12 sm:pt-24 sm:pb-16 text-center">
2323
<h1 class="text-3xl sm:text-4xl lg:text-5xl font-bold tracking-tight text-gray-900 mb-4 text-balance">WordPress Core <span class="text-brand-primary">via Composer</span></h1>
24-
<p class="text-lg text-gray-500 max-w-xl mx-auto text-balance">Meta-packages for installing WordPress core via Composer. Choose the build that fits your project.</p>
24+
<p class="text-lg text-gray-500 max-w-xl mx-auto text-balance">Packages for installing WordPress core via Composer. Choose the build that fits your project.</p>
2525
{{if .RootsDownloads}}<p class="mt-6 text-sm text-gray-500"><span class="font-semibold text-brand-primary">{{formatNumber .RootsDownloads}}</span> total installs via Packagist</p>{{end}}
2626
</div>
2727
</section>
@@ -125,23 +125,6 @@ <h3 class="text-lg font-semibold text-gray-900 mb-3">Full build</h3>
125125
}</code></pre>
126126
</div>
127127

128-
<h3 class="text-lg font-semibold text-gray-900 mb-3">Minimal (no content)</h3>
129-
<p class="text-gray-600 mb-4 leading-relaxed">Bare WordPress core. Same as <code class="text-sm font-mono bg-gray-100 px-1.5 py-0.5 rounded border border-gray-200/40">roots/wordpress</code> but as a direct dependency rather than a meta-package.</p>
130-
<div class="rounded-xl border border-gray-200/60 overflow-hidden mb-10">
131-
<div class="bg-gray-50/50 px-4 py-2 text-xs text-gray-500 border-b border-gray-200/40">composer.json</div>
132-
<pre class="p-4 text-sm font-mono leading-relaxed overflow-x-auto"><code>{
133-
<span class="text-green-700">"require"</span>: {
134-
<span class="text-green-700">"roots/wordpress-core-installer"</span>: <span class="text-green-700">"^1.0"</span>,
135-
<span class="text-green-700">"roots/wordpress-no-content"</span>: <span class="text-green-700">"^6.8"</span>
136-
},
137-
<span class="text-green-700">"config"</span>: {
138-
<span class="text-green-700">"allow-plugins"</span>: {
139-
<span class="text-green-700">"roots/wordpress-core-installer"</span>: true
140-
}
141-
}
142-
}</code></pre>
143-
</div>
144-
145128
<div class="rounded-xl border border-brand-primary/20 bg-brand-lightest/30 p-6 sm:p-8 text-center mb-8">
146129
<h3 class="text-lg font-bold text-gray-900 mb-2">Using Bedrock?</h3>
147130
<p class="text-gray-600 mb-5 text-sm">All of this is already configured for you. <a href="https://roots.io/bedrock/" class="text-brand-primary hover:underline" rel="noopener">Bedrock</a> is a WordPress boilerplate with Composer, better configuration, and an improved folder structure.</p>

0 commit comments

Comments
 (0)