ep_public_view 0.0.32 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,11 +22,11 @@ jobs:
|
|
|
22
22
|
version: 1.0
|
|
23
23
|
-
|
|
24
24
|
name: Install etherpad core
|
|
25
|
-
uses: actions/checkout@
|
|
25
|
+
uses: actions/checkout@v4
|
|
26
26
|
with:
|
|
27
27
|
repository: ether/etherpad-lite
|
|
28
28
|
path: etherpad-lite
|
|
29
|
-
- uses: pnpm/action-setup@
|
|
29
|
+
- uses: pnpm/action-setup@v3
|
|
30
30
|
name: Install pnpm
|
|
31
31
|
with:
|
|
32
32
|
version: 10
|
|
@@ -35,7 +35,7 @@ jobs:
|
|
|
35
35
|
shell: bash
|
|
36
36
|
run: |
|
|
37
37
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
|
38
|
-
- uses: actions/cache@
|
|
38
|
+
- uses: actions/cache@v4
|
|
39
39
|
name: Setup pnpm cache
|
|
40
40
|
with:
|
|
41
41
|
path: ${{ env.STORE_PATH }}
|
|
@@ -44,7 +44,7 @@ jobs:
|
|
|
44
44
|
${{ runner.os }}-pnpm-store-
|
|
45
45
|
-
|
|
46
46
|
name: Checkout plugin repository
|
|
47
|
-
uses: actions/checkout@
|
|
47
|
+
uses: actions/checkout@v4
|
|
48
48
|
with:
|
|
49
49
|
path: plugin
|
|
50
50
|
- name: Remove tests
|
|
@@ -62,6 +62,7 @@ jobs:
|
|
|
62
62
|
name: Run the backend tests
|
|
63
63
|
working-directory: ./etherpad-lite/src
|
|
64
64
|
run: |
|
|
65
|
+
shopt -s globstar
|
|
65
66
|
res=$(find ./plugin_packages -path "*/static/tests/backend/specs/*" 2>/dev/null | wc -l)
|
|
66
67
|
if [ $res -eq 0 ]; then
|
|
67
68
|
echo "No backend tests found"
|
|
@@ -12,10 +12,10 @@ jobs:
|
|
|
12
12
|
steps:
|
|
13
13
|
-
|
|
14
14
|
name: Check out Etherpad core
|
|
15
|
-
uses: actions/checkout@
|
|
15
|
+
uses: actions/checkout@v4
|
|
16
16
|
with:
|
|
17
17
|
repository: ether/etherpad-lite
|
|
18
|
-
- uses: pnpm/action-setup@
|
|
18
|
+
- uses: pnpm/action-setup@v3
|
|
19
19
|
name: Install pnpm
|
|
20
20
|
with:
|
|
21
21
|
version: 10
|
|
@@ -24,7 +24,7 @@ jobs:
|
|
|
24
24
|
shell: bash
|
|
25
25
|
run: |
|
|
26
26
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
|
27
|
-
- uses: actions/cache@
|
|
27
|
+
- uses: actions/cache@v4
|
|
28
28
|
name: Setup pnpm cache
|
|
29
29
|
with:
|
|
30
30
|
path: ${{ env.STORE_PATH }}
|
|
@@ -33,7 +33,7 @@ jobs:
|
|
|
33
33
|
${{ runner.os }}-pnpm-store-
|
|
34
34
|
-
|
|
35
35
|
name: Check out the plugin
|
|
36
|
-
uses: actions/checkout@
|
|
36
|
+
uses: actions/checkout@v4
|
|
37
37
|
with:
|
|
38
38
|
path: ./node_modules/__tmp
|
|
39
39
|
-
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# This workflow will run tests using node and then publish a package to the npm registry when a release is created
|
|
2
2
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
+
#
|
|
4
|
+
# Publishing uses npm Trusted Publishing (OIDC) — no NPM_TOKEN secret is
|
|
5
|
+
# required. Each package must have a trusted publisher configured on npmjs.com
|
|
6
|
+
# pointing at this workflow file. See:
|
|
7
|
+
# https://docs.npmjs.com/trusted-publishers
|
|
3
8
|
|
|
4
9
|
name: Node.js Package
|
|
5
10
|
|
|
@@ -9,11 +14,19 @@ on:
|
|
|
9
14
|
jobs:
|
|
10
15
|
publish-npm:
|
|
11
16
|
runs-on: ubuntu-latest
|
|
17
|
+
permissions:
|
|
18
|
+
contents: write # for `git push --follow-tags` of the version bump
|
|
19
|
+
id-token: write # for npm OIDC trusted publishing
|
|
12
20
|
steps:
|
|
13
21
|
- uses: actions/setup-node@v6
|
|
14
22
|
with:
|
|
23
|
+
# OIDC trusted publishing needs npm >= 11.5.1, which requires
|
|
24
|
+
# Node >= 20.17.0. setup-node's `20` resolves to the latest
|
|
25
|
+
# 20.x, which satisfies that.
|
|
15
26
|
node-version: 20
|
|
16
27
|
registry-url: https://registry.npmjs.org/
|
|
28
|
+
- name: Upgrade npm to >=11.5.1 (required for trusted publishing)
|
|
29
|
+
run: npm install -g npm@latest
|
|
17
30
|
- name: Check out Etherpad core
|
|
18
31
|
uses: actions/checkout@v6
|
|
19
32
|
with:
|
|
@@ -63,12 +76,10 @@ jobs:
|
|
|
63
76
|
# already-used version number. By running `npm publish` after `git push`,
|
|
64
77
|
# back-to-back merges will cause the first merge's workflow to fail but
|
|
65
78
|
# the second's will succeed.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
# env:
|
|
74
|
-
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
79
|
+
#
|
|
80
|
+
# Use `npm publish` directly (not `pnpm publish`) because OIDC trusted
|
|
81
|
+
# publishing requires npm CLI >= 11.5.1 and `pnpm publish` shells out to
|
|
82
|
+
# whichever `npm` is on PATH; calling `npm` directly avoids any shim
|
|
83
|
+
# ambiguity.
|
|
84
|
+
- name: Publish to npm via OIDC
|
|
85
|
+
run: npm publish --provenance --access public
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
name: Node.js Package
|
|
2
2
|
on: [push]
|
|
3
3
|
|
|
4
|
+
# id-token: write must be granted here so the reusable npmpublish workflow
|
|
5
|
+
# can request an OIDC token for npm trusted publishing.
|
|
6
|
+
permissions:
|
|
7
|
+
contents: write
|
|
8
|
+
id-token: write
|
|
4
9
|
|
|
5
10
|
jobs:
|
|
6
11
|
backend:
|
|
@@ -14,5 +19,8 @@ jobs:
|
|
|
14
19
|
needs:
|
|
15
20
|
- backend
|
|
16
21
|
- frontend
|
|
22
|
+
permissions:
|
|
23
|
+
contents: write # for the version bump push
|
|
24
|
+
id-token: write # for npm OIDC trusted publishing
|
|
17
25
|
uses: ./.github/workflows/npmpublish.yml
|
|
18
26
|
secrets: inherit
|
package/README.md
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
  [](https://github.com/ether/ep_public_view/actions/workflows/test-and-release.yml)
|
|
2
|
+
|
|
3
|
+
# Public Search engine indexable pad contents
|
|
4
|
+
Let's say you have made loads of awesome content in your pad but search engines haven't indexed it.
|
|
5
|
+
|
|
6
|
+
ep_public_view serves your pad HTML as static HTML that can be indexed by search engines.
|
|
7
|
+
|
|
8
|
+
# Usage
|
|
9
|
+
|
|
10
|
+
Visit the /public/$whateverpadid$ IE http://etherpad.com/public/test endpoint to visit the public representation of your pad.
|
|
11
|
+
|
|
12
|
+
## Example animated gif of usage if appropriate
|
|
13
|
+
|
|
14
|
+
## Installing
|
|
15
|
+
pnpm run plugins install ep_public_view
|
|
16
|
+
|
|
17
|
+
or Use the Etherpad ``/admin`` interface.
|
|
18
|
+
|
|
19
|
+
## Performance
|
|
20
|
+
It's advised that you cache the requests made to this endpoint in a reverse proxy such as nginx, varnish or haproxy.
|
|
21
|
+
|
|
22
|
+
## Settings
|
|
23
|
+
Document settings if any
|
|
24
|
+
|
|
25
|
+
## Testing
|
|
26
|
+
Document how to run backend / frontend tests.
|
|
27
|
+
|
|
28
|
+
### Frontend
|
|
29
|
+
|
|
30
|
+
Visit http://whatever/tests/frontend/ to run the frontend tests.
|
|
31
|
+
|
|
32
|
+
### backend
|
|
33
|
+
|
|
34
|
+
Type ``cd src && npm run test`` to run the backend tests.
|
|
35
|
+
|
|
36
|
+
## LICENSE
|
|
37
|
+
Apache 2.0
|
package/package.json
CHANGED
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"email": "john@mclear.co.uk",
|
|
15
15
|
"url": "http://mclear.co.uk"
|
|
16
16
|
},
|
|
17
|
-
"version": "0.0.
|
|
17
|
+
"version": "0.0.42",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "
|
|
20
|
+
"url": "https://github.com/ether/ep_public_view.git"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"eslint": "^8.57.1",
|
|
24
24
|
"eslint-config-etherpad": "^4.0.4",
|
|
25
|
-
"typescript": "^
|
|
25
|
+
"typescript": "^5.9.3"
|
|
26
26
|
},
|
|
27
27
|
"funding": {
|
|
28
28
|
"type": "individual",
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
"lint": "eslint .",
|
|
36
36
|
"lint:fix": "eslint --fix ."
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|