Skip to content

Commit

Permalink
website: re-generate commons
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Jan 20, 2025
1 parent d387c75 commit e910c9b
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 78 deletions.
20 changes: 0 additions & 20 deletions website/blog/_common/_download-analytics.mdx

This file was deleted.

21 changes: 0 additions & 21 deletions website/docs/about/_common/HistoryXpm/index.tsx

This file was deleted.

38 changes: 16 additions & 22 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,7 @@ function getCustomFields() {

const customFields = websitePackageJson?.websiteConfig?.customFields ?? {};

let upstreamVersion
if (customFields.hasTwoNumbersVersion === 'true' && xpackSemver.endsWith('.0')) {
// Remove the patch number if zero (wine uses both 2 and 3 numbers).
upstreamVersion = xpackSemver.replace(/[.]0*$/, '');
} else {
upstreamVersion = xpackSemver;
}
let upstreamVersion = xpackSemver;

return {
version: jsonVersion,
Expand All @@ -88,7 +82,7 @@ console.log('customFields: ' + util.inspect(customFields));
const config: Config = {
title: 'xPack Binary Development Tools' +
((process.env.DOCUSAURUS_IS_PREVIEW === 'true') ? ' (preview)' : ''),
tagline: 'A binary distribution of Binary Development Tools',
tagline: 'Cross-platform binary tools for software development, aimed at reproducible builds',
// Explicitly set in headTags.
// favicon: '/img/favicon.ico',

Expand All @@ -97,12 +91,12 @@ const config: Config = {
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: process.env.DOCUSAURUS_BASEURL ??
'/xpack-dev-tools.github.io-xpack/',
'/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'xpack-dev-tools', // Usually your GitHub org/user name.
projectName: 'xpack-dev-tools.github.io-xpack', // Usually your repo name.
projectName: 'xpack-dev-tools.github.io', // Usually your repo name.

onBrokenAnchors: 'throw',
onBrokenLinks: 'throw',
Expand Down Expand Up @@ -131,7 +125,7 @@ const config: Config = {
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/edit/xpack/website/',
'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/edit/xpack/website/',
// showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
Expand All @@ -140,7 +134,7 @@ const config: Config = {
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/edit/xpack/website/',
'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/edit/xpack/website/',
showLastUpdateTime: true,
blogSidebarCount: 8,
},
Expand All @@ -153,9 +147,9 @@ const config: Config = {
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: [
'/xpack-dev-tools.github.io-xpack/blog/archive/**',
'/xpack-dev-tools.github.io-xpack/blog/authors/**',
'/xpack-dev-tools.github.io-xpack/blog/tags/**'
'/blog/archive/**',
'/blog/authors/**',
'/blog/tags/**'
],
filename: 'sitemap.xml',
},
Expand Down Expand Up @@ -298,20 +292,20 @@ const config: Config = {
]
},
{
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/',
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
},
{
type: 'dropdown',
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/',
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/',
position: 'right',
label: 'GitHub',
items: [
{
label: `xpack-dev-tools.github.io-xpack`,
href: `https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/`,
label: `xpack-dev-tools.github.io`,
href: `https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/`,
},
{
label: 'xpack-dev-tools org',
Expand Down Expand Up @@ -350,7 +344,7 @@ const config: Config = {
items: [
{
label: 'GitHub Discussions',
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/discussions',
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/discussions',
},
{
label: 'Stack Overflow',
Expand All @@ -374,8 +368,8 @@ const config: Config = {
href: 'https://www.paypal.com/donate/?hosted_button_id=5MFRG9ZRBETQ8',
},
{
label: 'GitHub xpack-dev-tools.github.io-xpack',
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io-xpack/',
label: 'GitHub xpack-dev-tools.github.io',
href: 'https://github.com/xpack-dev-tools/xpack-dev-tools.github.io/',
},
{
label: 'GitHub xpack-dev-tools org',
Expand Down
18 changes: 7 additions & 11 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,13 @@
},
"websiteConfig": {
"skipInstallCommand": "true",
"customFields": {
"isOrganizationWeb": "true",
"docusaurusTagline": "Cross-platform binary tools for software development, aimed at reproducible builds",
"docusaurusBaseUrl": "/",
"gitHubProjectName": "xpack-dev-tools.github.io",
"hasCustomDeveloper": "true",
"hasCustomInstall": "true",
"hasCustomMaintainer": "true",
"hasCustomUser": "true",
"usePluralGuides": "true"
}
"usePluralGuides": "true",
"hasCustomInstall": "true",
"hasCustomUser": "true",
"hasCustomMaintainer": "true",
"hasCustomDeveloper": "true",
"docusaurusTagline": "Cross-platform binary tools for software development, aimed at reproducible builds",
"docusaurusBaseUrl": "/"
},
"engines": {
"node": ">=18.0"
Expand Down
8 changes: 4 additions & 4 deletions website/src/components/HomepageTools/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ function Tool({ longName, shortName }) {
<b><Link to={'https://xpack-dev-tools.github.io/' + shortName + '-xpack/'}>{shortName}</Link></b> - <b>xPack {longName}</b>
</div>
<div className="padding-top--xs">
<Link to={'https://github.com/xpack-dev-tools/' + shortName + '-xpack/releases/'}><img alt="GitHub Release" src={'https://img.shields.io/github/v/release/xpack-dev-tools/' + shortName + '-xpack?color=blue'} /></Link>
&nbsp;<Link to={'https://github.com/xpack-dev-tools/' + shortName + '-xpack/releases/'}><img alt="GitHub Release Date" src={'https://img.shields.io/github/release-date/xpack-dev-tools/' + shortName + '-xpack?label=date&color=yellowgreen'} /></Link>
&nbsp;<Link to={'https://github.com/xpack-dev-tools/' + shortName + '-xpack/releases/'}><img alt="GitHub Downloads (all assets, all releases)" src={'https://img.shields.io/github/downloads/xpack-dev-tools/' + shortName + '-xpack/total.svg'} /></Link>
&nbsp;<Link to={'https://github.com/xpack-dev-tools/' + shortName + '-xpack/'}><img alt="GitHub Repo stars" src={'https://img.shields.io/github/stars/xpack-dev-tools/' + shortName + '-xpack'} /></Link>
<Link to={'https://github.com/{{githubProjectOrganization}}/' + shortName + '-xpack/releases/'}><img alt="GitHub Release" src={'https://img.shields.io/github/v/release/{{githubProjectOrganization}}/' + shortName + '-xpack?color=blue'} /></Link>
&nbsp;<Link to={'https://github.com/{{githubProjectOrganization}}/' + shortName + '-xpack/releases/'}><img alt="GitHub Release Date" src={'https://img.shields.io/github/release-date/{{githubProjectOrganization}}/' + shortName + '-xpack?label=date&color=yellowgreen'} /></Link>
&nbsp;<Link to={'https://github.com/{{githubProjectOrganization}}/' + shortName + '-xpack/releases/'}><img alt="GitHub Downloads (all assets, all releases)" src={'https://img.shields.io/github/downloads/{{githubProjectOrganization}}/' + shortName + '-xpack/total.svg'} /></Link>
&nbsp;<Link to={'https://github.com/{{githubProjectOrganization}}/' + shortName + '-xpack/'}><img alt="GitHub Repo stars" src={'https://img.shields.io/github/stars/{{githubProjectOrganization}}/' + shortName + '-xpack'} /></Link>
</div>
</div>
</>
Expand Down

0 comments on commit e910c9b

Please sign in to comment.