Skip to content

Commit

Permalink
website: re-generate commons
Browse files Browse the repository at this point in the history
ilg-ul committed Jan 16, 2025
1 parent 139f7c1 commit 0357dd9
Showing 65 changed files with 244 additions and 75 deletions.
23 changes: 22 additions & 1 deletion website/README.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,27 @@ a modern static website generator.

The folder was created with:

```bash
```sh
npx create-docusaurus website classic --typescript
```

## docusaurus-plugin-typedoc

This plugin uses [TypeDoc](https://typedoc.org) to generate
the reference as markdown pages in `docs/api`.

- https://typedoc-plugin-markdown.org/plugins/docusaurus

```sh
cd website
npm install typedoc typedoc-plugin-markdown docusaurus-plugin-typedoc --save-dev
```

[!NOTE]
There is a new spec ([TSDoc](https://tsdoc.org)), pushed by
Microsoft, slightly different, for example there are no
categories or groups.

[!NOTE]
There is also another plugin, `docusaurus-plugin-typedoc-api`, but
it is no longer maintained.
2 changes: 1 addition & 1 deletion website/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// DO NOT EDIT!
// Automatically generated from xbb-helper/templates/docusaurus/common.
// Automatically generated from docusaurus-template-liquid/templates/docusaurus.

module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
2 changes: 1 addition & 1 deletion website/blog/_common/_deprecation-notices-glib-2.27.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

{/* ------------------------------------------------------------------------ */}

2 changes: 1 addition & 1 deletion website/blog/_common/_download-analytics.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import Image from '@theme/IdealImage';

2 changes: 1 addition & 1 deletion website/blog/_common/_prerequisites-glib-2.27.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

{/* ------------------------------------------------------------------------ */}

14 changes: 14 additions & 0 deletions website/blog/authors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# DO NOT EDIT!
# Automatically generated from docusaurus-template-liquid/templates/docusaurus.

ilg-ul:
name: Liviu Ionescu (ilg)
email: ilg@livius.net
url: https://github.com/ilg-ul
image_url: https://github.com/ilg-ul.png
page: true
socials:
x: ilegeul
github: ilg-ul
linkedin: https://www.linkedin.com/in/liviu-ionescu/
wordpress: https://ilgthegeek.wordpress.com
6 changes: 6 additions & 0 deletions website/blog/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# DO NOT EDIT!
# Automatically generated from docusaurus-template-liquid/templates/docusaurus.

releases:

web:
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/docs/about/_common/HistoryArmLinuxAdded/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/docs/about/_common/HistoryPlatformsAdded/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/docs/about/_common/HistoryRenameXpack/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/docs/about/_common/HistoryWindowsUcrt/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/docs/about/_common/HistoryXpm/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/docs/about/_common/HistoryZipAdded/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/docs/about/_common/_history-gnu-arm-eclipse.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

{/* ------------------------------------------------------------------------ */}

2 changes: 1 addition & 1 deletion website/docs/about/_common/_history-rename-xpack.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import Link from '@docusaurus/Link';

2 changes: 1 addition & 1 deletion website/docs/about/_common/_history-restructuring.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

{/* ------------------------------------------------------------------------ */}

2 changes: 1 addition & 1 deletion website/docs/about/_common/_history-setup-discontinued.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import Link from '@docusaurus/Link';

2 changes: 1 addition & 1 deletion website/docs/about/_common/_history-xbb-v5.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

{/* ------------------------------------------------------------------------ */}

2 changes: 1 addition & 1 deletion website/docs/about/_common/_intro-primary.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

{/* ------------------------------------------------------------------------ */}

2 changes: 1 addition & 1 deletion website/docs/about/_common/_intro-secondary.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

{/* ------------------------------------------------------------------------ */}

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

{/* ------------------------------------------------------------------------ */}

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

{/* ------------------------------------------------------------------------ */}

2 changes: 1 addition & 1 deletion website/docs/about/_common/_website-jekyll.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

{/* ------------------------------------------------------------------------ */}

2 changes: 1 addition & 1 deletion website/docs/about/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

# DO NOT EDIT!
# Automatically generated from xbb-helper/templates/docusaurus/common.
# Automatically generated from docusaurus-template-liquid/templates/docusaurus.

title: About
description: Details about the project, including its history, the history of the website, and details about the author.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import CodeBlock from '@theme/CodeBlock';

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import CodeBlock from '@theme/CodeBlock';

2 changes: 1 addition & 1 deletion website/docs/developer/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

# DO NOT EDIT!
# Automatically generated from xbb-helper/templates/docusaurus/common.
# Automatically generated from docusaurus-template-liquid/templates/docusaurus.

title: Contributor's Guide
description: Guidance for developers aiming to contribute new features or bug fixes, detailing how to build the binaries, including prerequisites, repositories utilised, and scripts.
2 changes: 1 addition & 1 deletion website/docs/faq/_common/_flatpack-snap.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import Link from '@docusaurus/Link';

2 changes: 1 addition & 1 deletion website/docs/faq/_common/_nixos.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import Link from '@docusaurus/Link';

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import versionMajor from '@site/src/libs/versionMajor';

2 changes: 1 addition & 1 deletion website/docs/getting-started/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

# DO NOT EDIT!
# Automatically generated from xbb-helper/templates/docusaurus/common.
# Automatically generated from docusaurus-template-liquid/templates/docusaurus.

title: Getting Started
description: The initial steps to explore the project, including what xpacks are, the project's features, benefits, compatibility, and available documentation.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import CodeBlock from '@theme/CodeBlock';
import Tabs from '@theme/Tabs';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import CodeBlock from '@theme/CodeBlock';
import Tabs from '@theme/Tabs';
2 changes: 1 addition & 1 deletion website/docs/install/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

# DO NOT EDIT!
# Automatically generated from xbb-helper/templates/docusaurus/common.
# Automatically generated from docusaurus-template-liquid/templates/docusaurus.

title: Install Guide
description: Explain the prerequisites, how to perform an automated or manual installation, how to uninstall, and the folder hierarchies.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

{/* ------------------------------------------------------------------------ */}

2 changes: 1 addition & 1 deletion website/docs/maintainer/_common/_platform-docker-build.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import CodeBlock from '@theme/CodeBlock';

2 changes: 1 addition & 1 deletion website/docs/maintainer/_common/_platform-native-build.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import CodeBlock from '@theme/CodeBlock';

2 changes: 1 addition & 1 deletion website/docs/maintainer/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

# DO NOT EDIT!
# Automatically generated from xbb-helper/templates/docusaurus/common.
# Automatically generated from docusaurus-template-liquid/templates/docusaurus.

title: Maintainer's Guide
description: Assistance for project maintainers, including the release schedule, versioning scheme, and instructions on how to build, test, and publish.
2 changes: 1 addition & 1 deletion website/docs/releases/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

# DO NOT EDIT!
# Automatically generated from xbb-helper/templates/docusaurus/common.
# Automatically generated from docusaurus-template-liquid/templates/docusaurus.

title: Releases
description: The full list of project releases.
2 changes: 1 addition & 1 deletion website/docs/support/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

# DO NOT EDIT!
# Automatically generated from xbb-helper/templates/docusaurus/common.
# Automatically generated from docusaurus-template-liquid/templates/docusaurus.

title: Help Centre
description: The project's support channel, where you can ask questions, start discussions, and report issues.
74 changes: 66 additions & 8 deletions website/docs/test/index.mdx
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
---

# DO NOT EDIT!
# Automatically generated from xbb-helper/templates/docusaurus/common.
# Automatically generated from docusaurus-template-liquid/templates/docusaurus.

title: A test page
description: Some markdown examples.

unlisted: true

something: "Some text"

# https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs#markdown-front-matter

---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Heading from '@theme/Heading';

import CodeBlock from '@theme/CodeBlock';

export const world = 'World'
@@ -62,7 +68,7 @@ Eight

:::note

Some **content** with _Markdown_ `syntax`. Check [this `api`](#).
Some white **content** with _Markdown_ `syntax`. Check [this `api`](#).

:::

@@ -72,30 +78,32 @@ Some **content** with _Markdown_ `syntax`. Check [this `api`](#).

:::

:::tip
:::info

Some **content** with _Markdown_ `syntax`. Check [this `api`](#).
Some blue **content** with _Markdown_ `syntax`. Check [this `api`](#).

:::

:::info
:::tip

Some **content** with _Markdown_ `syntax`. Check [this `api`](#).
Some green **content** with _Markdown_ `syntax`. Check [this `api`](#).

:::

:::caution

Some **content** with _Markdown_ `syntax`. Check [this `api`](#).
Some orange **content** with _Markdown_ `syntax`. Check [this `api`](#).

:::

:::danger

Some **content** with _Markdown_ `syntax`. Check [this `api`](#).
Some red **content** with _Markdown_ `syntax`. Check [this `api`](#).

:::

Jekyll `{% include note.html` must be replaced by `:::info`.

---

## Expandable details
@@ -149,3 +157,53 @@ const visit = require('unist-util-visit');
21 directories, 62 files
`}</code></pre>

---

## Tabs

<Tabs groupId="operating-systems">

<TabItem value="windows" label="Windows" default>

...

</TabItem>

<TabItem value="macos" label="macOS">

...

</TabItem>

<TabItem value="linux" label="GNU/Linux">

...

</TabItem>

</Tabs>

## Headers in tabs

To display headings not showing in the TOC:

<Heading as="h3">My Heading</Heading>

## Conditional markdown

```
### Edit the {props.doReconstruct === "true" ? (`LICENSE-XPACK`) : (`LICENSE`)} file
```

or

```
<ul>
<li>select the `master` branch</li>
<li>create a new `xpack` branch</li>
<li>switch to it</li>
{props.doReconstruct === "true" ? (<li>rename <code>LICENSE</code> to <code>LICENSE-XPACK</code>.</li>) : (<></>)}
{props.doReconstruct === "true" ? (<li>rename <code>README.md</code> to <code>README-XPACK.md</code>.</li>) : (<></>)}
<li>Push the `xpack` branch</li>
</ul>
```
2 changes: 1 addition & 1 deletion website/docs/user/_common/_libraries-and-rpath.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

{/* ------------------------------------------------------------------------ */}

2 changes: 1 addition & 1 deletion website/docs/user/_common/_versioning.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{/* DO NOT EDIT! */}
{/* Automatically generated from xbb-helper/templates/docusaurus/common. */}
{/* Automatically generated from docusaurus-template-liquid/templates/docusaurus. */}

import CodeBlock from '@theme/CodeBlock';
import Admonition from '@theme/Admonition';
2 changes: 1 addition & 1 deletion website/docs/user/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

# DO NOT EDIT!
# Automatically generated from xbb-helper/templates/docusaurus/common.
# Automatically generated from docusaurus-template-liquid/templates/docusaurus.

title: User's Guide
description: User information, including the versioning scheme, usage of shared libraries, and RPATH configuration on GNU/Linux.
3 changes: 1 addition & 2 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// DO NOT EDIT!
// Automatically generated from xbb-helper/templates/docusaurus/common.
// Automatically generated from docusaurus-template-liquid/templates/docusaurus.

import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
@@ -146,7 +146,6 @@ const config: Config = {
'https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/edit/xpack/website/',
showLastUpdateTime: true,
blogSidebarCount: 8,
authorsMapPath: '../authors.yml',
},
theme: {
customCss: './src/css/custom.css',
2 changes: 1 addition & 1 deletion website/sidebars.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// DO NOT EDIT!
// Automatically generated from xbb-helper/templates/docusaurus/common.
// Automatically generated from docusaurus-template-liquid/templates/docusaurus.

import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';

2 changes: 1 addition & 1 deletion website/src/components/HeadTitle/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/src/components/HomepageFeatures/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*/

.features {
2 changes: 1 addition & 1 deletion website/src/components/InstallWithCopy/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/src/components/LinksVsForwarders/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
18 changes: 12 additions & 6 deletions website/src/components/ReleasesList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
@@ -23,11 +23,17 @@ export function ReleasesList({items}): JSX.Element {
return (
<ul>
{
pluginData.releasesTable.map(release => (
<li>
<a href={release.permalink}>{release.title}</a> (<a href={release.downloadUrl}>download</a>)
</li>
))
pluginData.releasesTable.length > 0 ?
pluginData.releasesTable.map(release => (
<li>
<a href={release.permalink}>{release.title}</a> {release.downloadUrl === "true" ? (<>(<a href={release.downloadUrl}>download</a>)</>) : (<></>)}
</li>
)) :
(
<li>
none yet
</li>
)
}
</ul>
)
46 changes: 45 additions & 1 deletion website/src/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
@@ -52,6 +52,10 @@ hr.hero__hr2 {
height: 2px;
}

hr.hero__hr2_margin {
margin: calc(var(--ifm-hr-margin-vertical) / 2);
}

/* Reduce size of blog titles (H2 is 2rem) */
.title_f1Hy {
font-size: 2.5rem; /* 3rem; */
@@ -93,6 +97,46 @@ h2[class*="title"]
no-repeat;
}

.sub-web-home-link::before {
content: '';
width: 26px;
height: 26px;
display: inline-flex;
vertical-align: top;
padding-right: 0.5em;
background: url("/img/web.svg") no-repeat;
}

[data-theme='dark'] .sub-web-home-link::before {
content: '';
width: 26px;
height: 26px;
display: inline-flex;
vertical-align: top;
padding-right: 0.5em;
background: url("/img/web-dark.svg") no-repeat;
}

.sub-web-github-link::before {
content: '';
width: 24px;
height: 24px;
display: inline-flex;
vertical-align: top;
padding-right: 0.5em;
background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E") no-repeat;
}

[data-theme='dark'] .sub-web-github-link::before {
content: '';
width: 24px;
height: 24px;
display: inline-flex;
vertical-align: top;
padding-right: 0.5em;
background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E") no-repeat;
}

.getting-started-link::before {
content: '';
width: 36px;
19 changes: 19 additions & 0 deletions website/src/libs/customField.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* DO NOT EDIT!
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software
* for any purpose is hereby granted, under the terms of the MIT license.
*
* If a copy of the license was not distributed with this file, it can
* be obtained from https://opensource.org/licenses/MIT/.
*/

import useDocusaurusContext from '@docusaurus/useDocusaurusContext';

export default function customField(name: string): string {
return useDocusaurusContext().siteConfig.customFields[name];
}
2 changes: 1 addition & 1 deletion website/src/libs/isXpackSubversionDouble.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/src/libs/versionMajor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/src/libs/versionMinor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
2 changes: 1 addition & 1 deletion website/src/pages/index.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* CSS files with the .module.css suffix will be treated as CSS modules
* and scoped locally.
2 changes: 1 addition & 1 deletion website/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
6 changes: 3 additions & 3 deletions website/src/plugins/SelectReleasesPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DO NOT EDIT!
* Automatically generated from xbb-helper/templates/docusaurus/common.
* Automatically generated from docusaurus-template-liquid/templates/docusaurus.
*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2024 Liviu Ionescu. All rights reserved.
@@ -12,7 +12,7 @@
* be obtained from https://opensource.org/licenses/MIT/.
*/

import util from 'util'
import util from 'util';

// https://github.com/facebook/docusaurus/pull/9931

@@ -31,7 +31,7 @@ export default async function SelectReleasesPlugin(context, options) {
blogPosts.forEach(post => {
// console.log('SelectReleasesPlugin 3 ' + util.inspect(post.metadata.tags))
post.metadata.tags.forEach(tag => {
if (tag.label === 'releases') {
if (tag.label.toLowerCase() === 'releases') {
const permalink = post.metadata.permalink.endsWith('/') ?
post.metadata.permalink :
post.metadata.permalink + '/'
1 change: 1 addition & 0 deletions website/static/img/web-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/static/img/web.svg
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 website/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
// DO NOT EDIT!
// Automatically generated from xbb-helper/templates/docusaurus/common.
// Automatically generated from docusaurus-template-liquid/templates/docusaurus.

// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@docusaurus/tsconfig",

0 comments on commit 0357dd9

Please sign in to comment.