Skip to content

Commit c441ed3

Browse files
authored
Merge pull request #44 from sbcgua/docusaurus-update
Docusaurus update, migrate to pnpm
2 parents 21a5620 + 6e2ef21 commit c441ed3

11 files changed

Lines changed: 11891 additions & 18941 deletions

File tree

.github/workflows/deploy-gh-pages.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,22 @@ jobs:
1919
run:
2020
working-directory: ./docsite
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v6
2323
with:
2424
fetch-depth: 0
25-
- uses: actions/setup-node@v4
25+
- uses: pnpm/action-setup@v6
2626
with:
27-
node-version: 22
28-
cache: npm
29-
cache-dependency-path: './docsite/package-lock.json'
27+
version: 10
28+
- uses: actions/setup-node@v6
29+
with:
30+
node-version: 24
31+
cache: pnpm
32+
cache-dependency-path: './docsite/pnpm-lock.yaml'
3033

3134
- name: Install dependencies
32-
run: npm ci
35+
run: pnpm install
3336
- name: Build website
34-
run: npm run build
37+
run: pnpm run build
3538

3639
- name: Upload Build Artifact
3740
uses: actions/upload-pages-artifact@v3

.github/workflows/test-deploy-gh-pages.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@ jobs:
1616
run:
1717
working-directory: ./docsite
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020
with:
2121
fetch-depth: 0
22-
- uses: actions/setup-node@v4
22+
- uses: pnpm/action-setup@v6
2323
with:
24-
node-version: 22
25-
cache: npm
26-
cache-dependency-path: './docsite/package-lock.json'
24+
version: 10
25+
- uses: actions/setup-node@v6
26+
with:
27+
node-version: 24
28+
cache: pnpm
29+
cache-dependency-path: './docsite/pnpm-lock.yaml'
2730

2831
- name: Install dependencies
29-
run: npm ci
32+
run: pnpm install
3033
- name: Test build website
31-
run: npm run build
34+
run: pnpm run build

docsite/.npmrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Prevent malicious scripts
2+
ignore-scripts=true
3+
# Block non-registry sources
4+
block-exotic-subdeps=true
5+
# Wait for community vetting (7 days)
6+
minimum-release-age=10080
7+
# Prevent automatic downgrade attacks
8+
trustPolicy=no-downgrade

docsite/README.md

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,23 @@ This website is built using [Docusaurus](https://docusaurus.io/), a modern stati
44

55
## Installation
66

7-
```sh
8-
npm install
9-
```
7+
`pnpm install`
108

119
## Local Development
1210

13-
```sh
14-
npm start
15-
```
16-
1711
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
1812

19-
## Build
13+
`pnpm start`
2014

21-
```sh
22-
npm build
23-
```
15+
## Build
2416

2517
This command generates static content into the `build` directory and can be served using any static contents hosting service.
2618

27-
## Deployment
28-
29-
Using SSH:
19+
`pnpm build`
3020

31-
```sh
32-
USE_SSH=true npm deploy
33-
```
34-
35-
Not using SSH:
36-
37-
```sh
38-
GIT_USER=<Your GitHub username> npm deploy
39-
```
21+
## Deployment
4022

41-
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
23+
Done via github actions
4224

4325
## Notes
4426

@@ -50,3 +32,6 @@ If you are using GitHub pages for hosting, this command is a convenient way to b
5032
- if blog link is above `truncate` is must be complete (start with `/`), otherwise will be broken on tags page
5133
- change Repo/Settings/Pages/Source to Github actions (otherwise does not deploy from GA) - after that the pages are based on the GA artifact not the `gh-pages` branch! (TODO: maybe check how to deploy to a branch ... but maybe not)
5234
- to add search, apply for Algolia
35+
36+
## PNPM
37+

docsite/blog/2016-08-28-tab-delimited-text-parser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tags: [old]
77

88
I'd like to share a piece of code which might be useful for someone. It is called text2tab (at the time of initial publishing - Abap data parser). Its purpose is parsing of TAB-delimited text into an arbitrary flat structure or internal table. Why TAB-delimited? This is the format which is used automatically if you copy (clipboard) something from Excel - this creates some opportunities for good program usability.
99

10-
<!-- truncate -->
10+
{/*truncate*/}
1111

1212
## Example
1313

docsite/blog/2018-09-02-tab-delimited-text-serializer/index.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ authors: sbcgua
55
tags: [old]
66
---
77

8-
My first article on this topic was quite a while ago - [Abap tab-delimited text parser](/blog/tab-delimited-text-parser) - Since then I added some improvements to the project.
8+
My first article on this topic was quite a while ago - [Abap tab-delimited text parser](/blog/tab-delimited-text-parser) - Since then I added some improvements to the project. The main new feature is serializing. `ZCL_TEXT2TAB_SERIALIZER` class supports serialization of flat tables and structures. Here is how it works ...
99

10-
## Serializer - new feature
10+
{/*truncate*/}
1111

12-
The main new feature is serializing. `ZCL_TEXT2TAB_SERIALIZER` class supports serialization of flat tables and structures. Here is how it works:
13-
14-
<!-- truncate -->
12+
## Let's start with an example
1513

1614
```abap
1715
data lo_serializer type ref to zcl_text2tab_serializer.

docsite/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const config = {
2929

3030
future: {
3131
v4: true,
32-
experimental_faster: true,
32+
faster: true,
3333
},
3434

3535
title: 'Text2Tab',

0 commit comments

Comments
 (0)