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 Nov 21, 2024
1 parent c296a4a commit cf7547b
Show file tree
Hide file tree
Showing 12 changed files with 131 additions and 35 deletions.
Empty file removed website/docs/cli/index.mdx
Empty file.
6 changes: 3 additions & 3 deletions website/docs/developer/_common/_get-project-sources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ To clone the stable branch (`master`), run the following commands in a
terminal (on Windows use the Git Bash console):

```sh
mkdir ~/Work/npm-modules && cd ~/Work/npm-modules
mkdir ~/Work/npm-packages && cd ~/Work/npm-packages
git clone https://github.com/xpack/xpm-js.git xpm-js.git
```

For **development** purposes, clone the `development` branch:

```sh
mkdir ~/Work/npm-modules && cd ~/Work/npm-modules
mkdir ~/Work/npm-packages && cd ~/Work/npm-packages
git clone \
--branch development \
https://github.com/xpack/xpm-js.git xpm-js.git
Expand All @@ -34,5 +34,5 @@ git clone \
Or, if the repo was already cloned:

```sh
git -C ~/Work/npm-modules/xpm-js.git pull
git -C ~/Work/npm-packages/xpm-js.git pull
```
13 changes: 8 additions & 5 deletions website/docs/developer/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ date: 2024-10-25 13:10:00 +0300

---


import customField from '@site/src/libs/customField';
import CodeBlock from '@theme/CodeBlock';

Expand Down Expand Up @@ -44,7 +45,7 @@ project and provides documentation on how to build and test the package.
## Satisfy dependencies

```sh
npm --prefix ~/Work/npm-modules/xpm-js.git install
npm --prefix ~/Work/npm-packages/xpm-js.git install
```

## Add links for development
Expand All @@ -53,7 +54,7 @@ To facilitate the use of this module in other packages, add a link
from the central npm storage to this local development folder:

```sh
npm --prefix ~/Work/npm-modules/xpm-js.git link
npm --prefix ~/Work/npm-packages/xpm-js.git link
```

And in the projects referring it:
Expand All @@ -68,7 +69,7 @@ The TypeScript compiler can automatically recompile modified files. For
this, start it in `watch` mode.

```sh
npm --prefix ~/Work/npm-modules/xpm-js.git run compile-watch
npm --prefix ~/Work/npm-packages/xpm-js.git run compile-watch
```


Expand Down Expand Up @@ -137,8 +138,8 @@ As for any `npm` package, the standard way to run the project tests is via
`npm run test`:

```sh
npm --prefix ~/Work/npm-modules/xpm-js.git install
npm --prefix ~/Work/npm-modules/xpm-js.git run test
npm --prefix ~/Work/npm-packages/xpm-js.git install
npm --prefix ~/Work/npm-packages/xpm-js.git run test
```

<TestResults />
Expand All @@ -159,3 +160,5 @@ To trace TypeScript module resolution:
```json
"compile": "tsc --traceResolution -p ./",
```


15 changes: 15 additions & 0 deletions website/docs/getting-started/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ date: 2024-10-24 18:58:00 +0300

---

import Link from '@docusaurus/Link';



import Overview from './_overview.mdx'
import Compatibility from './_compatibility.mdx'
import Status from './_status.mdx'
Expand Down Expand Up @@ -55,6 +59,8 @@ backwards incompatible changes are introduced to the public API.

<Compatibility />



## Maintainer & Developer info

For information specific to maintainers and developers, please refer to
Expand All @@ -70,6 +76,15 @@ The original content is released under the
with all rights reserved to
[Liviu Ionescu](https://github.com/ilg-ul).

<Link to="https://www.macstadium.com/"><img className="mac-stadium-img" alt="MacStadium" src="https://uploads-ssl.webflow.com/5ac3c046c82724970fc60918/5c019d917bba312af7553b49_MacStadium-developerlogo.png"></img></Link>

## Credits

Special thanks to **MacStadium**, for providing the Apple Silicon
development infrastructure as part of their generous
[Free and Open Source Software](https://www.macstadium.com/company/opensource)
program.

## Enjoyed using this project? Let us know!

If you enjoyed using this project, please let us know! Here are some ways you can show your support:
Expand Down
6 changes: 3 additions & 3 deletions website/docs/install/_custom-install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ On macOS, if you followed the instructions in the
prerequisites section, you should
already have **npm** configured to use a location in the home folder.

```sh
% which xpm
<CodeBlock language="console"> {
`% which xpm
/Users/ilg/.nvm/versions/node/${props.nodeVersion}/bin/xpm
```
`} </CodeBlock>

To test if **xpm** starts:

Expand Down
14 changes: 9 additions & 5 deletions website/docs/maintainer/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ date: 2024-10-24 23:59:00 +0300

---



import CodeBlock from '@theme/CodeBlock';

import customField from '@site/src/libs/customField';
Expand Down Expand Up @@ -109,16 +111,16 @@ Execute the npm script `clean` then `start` in the website sub-project,
or run the following in a terminal:

```sh
npm --prefix ~/Work/npm-modules/xpm-js.git/website run clean
npm --prefix ~/Work/npm-modules/xpm-js.git/website run start
npm --prefix ~/Work/npm-packages/xpm-js.git/website run clean
npm --prefix ~/Work/npm-packages/xpm-js.git/website run start
```

Navigate to the **Maintainer Info** page,
the **Fix possible open issues** section.

### Fix possible open issues

Check GitHub issues and pull requests:
Check GitHub Issues and Pull Requests:

- https://github.com/xpack/xpm-js/issues
- https://github.com/xpack/xpm-js/pulls
Expand Down Expand Up @@ -196,7 +198,7 @@ to:
- run the `generate-website-blog-post` npm script; this will add a file in the `website/blog` folder:

```sh
npm --prefix ~/Work/npm-modules/xpm-js.git/website run generate-website-blog-post
npm --prefix ~/Work/npm-packages/xpm-js.git/website run generate-website-blog-post
```

- edit the front matter properties
Expand Down Expand Up @@ -232,7 +234,7 @@ npm install ----location=global xpm@next
Validate the web site content in a local build via the npm `build` script:

```sh
npm --prefix ~/Work/npm-modules/xpm-js.git/website run build
npm --prefix ~/Work/npm-packages/xpm-js.git/website run build
```

## Publish the website
Expand Down Expand Up @@ -317,3 +319,5 @@ Credit to [Shields IO](https://shields.io) for the badges.
- https://redfin.engineering/node-modules-at-war-why-commonjs-and-es-modules-cant-get-along-9617135eeca1

<More />


13 changes: 11 additions & 2 deletions website/docs/project/about/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ date: 2024-10-24 23:58:00 +0300

---


import Website from './_website.mdx'

{/* ------------------------------------------------------------------------ */}
Expand All @@ -18,11 +19,18 @@ import Website from './_website.mdx'

## The project


The **xPack Project Manager** project is part of the
[xPack Reproducible Build Framework](https://xpack.github.io)
and is hosted on GitHub as
[`xpack/xpm-js`](https://github.com/xpack/xpm-js/).


## The project history

The **xPack Project Manager** history is presented
in a separate [History](/docs/project/history/) page.

## The web site

<Website/>
Expand All @@ -35,8 +43,9 @@ a senior computer engineer, with expertise in **C++/C embedded systems**,
**RTOSes**, **build tools**, operating systems, compilers
and Internet technologies.


He can be reached at [`<[email protected]>`](mailto:[email protected]).
Please note, this email address is provided as a courtesy.
For all correspondence related to
the **xPack Project Manager**
project, kindly use the project [support](/docs/support/) page).
the **xPack Project Manager** project,
kindly use the project [support](/docs/support/) page).
61 changes: 56 additions & 5 deletions website/docs/support/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,22 @@ date: 2020-07-21 17:54:00 +0300

# How to get help for xpm


## Quick links

The quick answer is to use the
[GitHub Discussions](https://github.com/xpack/xpm-js/discussions) pages.
[GitHub Discussions](https://github.com/xpack/xpm-js/discussions)
pages.


## Web pages issues

If you find any issues in the content of these pages (such as typos or
incorrect phrasing) or have suggestions for improving the documentation,
please share them through the
[GitHub Discussions](https://github.com/xpack/xpm-js/discussions)
pages.


## Check documentation

Expand All @@ -42,16 +54,19 @@ similar topics
- check the
[GitHub Issues](https://github.com/xpack/xpm-js/issues)
tracker and the
[GitHub Pull requests](https://github.com/xpack/xpm-js/pulls)
[GitHub Pull Requests](https://github.com/xpack/xpm-js/pulls)
for similar problems.

## Ask questions in GitHub Discussions

If you still could not find a solution, if you have interesting use
cases, if you have custom configurations, and generally if you have
any experience that you want to share with others, use the
[GitHub Discussions](https://github.com/xpack/xpm-js/discussions) pages,
and enter a **New discussion**; use the **Q&A** category for questions, **Ideas** for suggestions and **General** for anything else.
any experience that you want to share with others,
use [GitHub Discussions](https://github.com/xpack/xpm-js/discussions)
pages.
Enter a **New discussion**; use the **Q&A** category for questions,
**Ideas** for suggestions and **General** for everything else.


## Register a new support ticket only if necessary

Expand All @@ -70,6 +85,42 @@ for questions and support, **use the

:::


## Stack Overflow

For community help, you can also use
[Stack Overflow](https://stackoverflow.com/).
Tag your questions with `xpack`.

:::tip

Please be aware that there is another tag `elastic-x-pack` for a different
project, and some of their questions are tagged with `xpack` too.

:::

## The Discord channel

For live discusssions among members, join the **xPack Community** on
[Discord](https://discord.gg/kbzWaJerFG).

Currently, there are three channels available:

- `#xpm`
- `#xpack-dev-tools`
- `#general`

These channels are open for free discussions on their respective topics.

However, for support, please use GitHub Discussions whenever possible.

## X/Twitter

New releases and other announcements are posted on
[X/Twitter](https://twitter.com/xpack_project).

Follow the hashtag `#xpack_project` for the latest updates.

## Use of private e-mail

:::caution Please, please, please!
Expand Down
18 changes: 10 additions & 8 deletions website/docs/test/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Eight

:::note

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

:::

Expand All @@ -79,30 +79,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
Expand Down Expand Up @@ -182,7 +184,7 @@ const visit = require('unist-util-visit');

</Tabs>

To display hadings not showing in the TOC:
To display headings not showing in the TOC:

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

13 changes: 10 additions & 3 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ function getCustomFields() {

logger.info(`package version: ${topPackageJson.version}`);

const customFields = {}
const enginesNodeVersion = topPackageJson.engines.node.replace(/[^0-9]*/, '') || '';
const enginesNodeVersionMajor = enginesNodeVersion.replace(/[.].*/, '');
const customFields = {
enginesNodeVersion,
enginesNodeVersionMajor
}

return {
releaseVersion,
Expand All @@ -54,15 +59,17 @@ logger.info(customFields);
// ----------------------------------------------------------------------------

const config: Config = {
title: 'xpm - The xPack Project Manager',
title: 'xpm - The xPack Project Manager' +
((process.env.DOCUSAURUS_IS_PREVIEW === 'true') ? ' (preview)' : ''),
tagline: 'A tool to automate builds, tests and manage C/C++ dependencies, inspired by npm',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://xpack.github.io/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/xpm-js/',
baseUrl: process.env.DOCUSAURUS_BASEURL ??
'/xpm-js/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
Expand Down
Loading

0 comments on commit cf7547b

Please sign in to comment.