Skip to content

Commit 756f113

Browse files
committed
Merge branch 'master' of github.com:simpleid/simpleid.github.io
2 parents 366d679 + ae7dcb5 commit 756f113

10 files changed

Lines changed: 897 additions & 1312 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"image":"mcr.microsoft.com/devcontainers/javascript-node:22"}

.eleventy.js

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const html_entities = require('html-entities');
66
const searchFilter = require("./_src/searchFilter");
77

88
const pluginSyntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight');
9-
const pluginSass = require('eleventy-sass');
109
const pluginRss = require('@11ty/eleventy-plugin-rss');
1110
const pluginNavigation = require('@11ty/eleventy-navigation');
1211
const pluginToc = require('eleventy-plugin-toc');
@@ -60,18 +59,38 @@ module.exports = function(conf) {
6059
conf.addLiquidFilter('getNewestCollectionItemDate', pluginRss.getNewestCollectionItemDate);
6160
conf.addLiquidFilter('date_to_rfc822', pluginRss.dateToRfc822);
6261

62+
// Extensions
63+
conf.addTemplateFormats('scss');
64+
conf.addExtension('scss', {
65+
outputFileExtension: 'css',
66+
useLayouts: false,
67+
compile: async function(inputContent, inputPath) {
68+
let parsedPath = path.parse(inputPath);
69+
if (parsedPath.name.startsWith('_')) return;
70+
71+
let result = sass.compileString(inputContent, {
72+
loadPaths: [
73+
parsedPath.dir || ".",
74+
'_sass'
75+
],
76+
style: 'compressed'
77+
});
78+
79+
this.addDependencies(inputPath, result.loadedUrls);
80+
81+
return async (data) => {
82+
return result.css;
83+
};
84+
}
85+
});
86+
6387
// Plugins
6488
conf.addPlugin(pluginSyntaxHighlight, {
6589
preAttributes: {
6690
tabindex: 0,
6791
'data-highlight': 'true'
6892
}
6993
});
70-
conf.addPlugin(pluginSass, {
71-
sass: {
72-
loadPaths: [ '_sass' ]
73-
}
74-
});
7594
conf.addPlugin(pluginNavigation);
7695
conf.addPlugin(pluginToc);
7796

.eleventyignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
README.md
2+
.github

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ jobs:
2020
- name: Set up nodejs
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: '20'
23+
node-version-file: '.nvmrc'
2424
cache: npm
2525

2626
- name: Install dependencies
2727
run: npm install
2828

2929
- name: Run Eleventy build
3030
run: npm run-script build
31+
env:
32+
NODE_OPTIONS: "--experimental-require-module"
3133

3234
- name: Upload build output
3335
uses: actions/upload-pages-artifact@v3

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

docs/2/common-problems.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If login verification is enabled and you have lost the device that generates the
2323

2424
```yaml
2525
otp:
26-
type: recovery
26+
recovery: true
2727
```
2828
2929
2. You will now be able to [log into SimpleID](/docs/2/login) without the verification code.

docs/2/installing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ openssl rsa -in private.pem -out public.pem -pubout
110110
```
111111

112112
The private and public keys, `private.pem` and `public.pem` have to be
113-
converted into separate JSON Web Key Sets. The easiest way of doing this
114-
is to use the `jwkstool` utility that is included with the SimpleJWT library.
113+
converted into separate JSON Web Key Sets. One way of doing this is using
114+
the [jwkstool utility](https://github.com/kelvinmo/jwkstool).
115115

116116
```shell
117-
www/vendor/bin/jwkstool add -c private.json private.pem
118-
www/vendor/bin/jwkstool add -c public.json public.pem
117+
php jwkstool.phar add --generate-id=thumbnail -c private.json private.pem
118+
php jwkstool.phar add --generate-id=thumbnail -c public.json public.pem
119119
rm private.pem
120120
rm public.pem
121121
```

docs/2/system-requirements.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ To host a SimpleID installation requires:
3333
- xmlreader;
3434
- openssl;
3535
- hash;
36-
- sodium.
36+
- sodium;
37+
- intl.
3738
5. PHP needs to be configured so that <code>register_globals</code> and <code>short_open_tag</code> are switched **off**. See the [PHP manual](http://www.php.net/manual/en/security.globals.php) for further details.
3839
6. If you are using [PHP Suhosin](http://www.hardened-php.net/suhosin/index.html), or some other query filter, you may need to increase the [`suhosin.get.max_value_length`](http://www.hardened-php.net/suhosin/configuration.html#suhosin.get.max_value_length) configuration to at least 1024, as SimpleID uses very long query strings.
3940

0 commit comments

Comments
 (0)