Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/generate-llms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Generate LLMs files

on:
workflow_dispatch:
inputs:
environment:
description: 'Environment'
required: true
default: 'dev'
type: choice
options:
- dev
- prod

permissions:
contents: write

jobs:
generate:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Copy env file
run: |
if [ "${{ inputs.environment }}" = "prod" ]; then
echo "${{ secrets.ENV_PROD }}" | base64 -d > .env
else
echo "${{ secrets.ENV_DEV }}" | base64 -d > .env
fi
rm -f .env.local

- name: Generate llms-full-pages
run: yarn generate:llms:pages

- name: Commit and push generated files
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git add public/keepsimple_/
if ! git diff --cached --quiet; then
git commit -m "chore: regenerate llms pages"
git push
fi
1 change: 0 additions & 1 deletion cypress/support/e2e.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Import custom commands
import './commands';
import 'cypress-real-events';

// Suppress Next.js route cancellation errors (thrown during rapid navigation)
Cypress.on('uncaught:exception', err => {
Expand Down
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ module.exports = async () => {
'staging-strapi.keepsimple.io',
],
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
});

return config;
},

productionBrowserSourceMaps: true,
};
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"scripts": {
"dev": "cross-env NODE_ENV=development APP_ENV=local next dev -p 3005",
"build": "cross-env NODE_ENV=production APP_ENV=prod next build",
"generate:llms": "cross-env LLMS_MODE=curated ts-node --compiler-options '{\"module\":\"commonjs\",\"target\":\"es2020\"}' scripts/generate-llms.ts",
"generate:llms:full": "cross-env LLMS_MODE=full ts-node --compiler-options '{\"module\":\"commonjs\",\"target\":\"es2020\"}' scripts/generate-llms.ts",
"generate:llms:pages": "ts-node --compiler-options '{\"module\":\"commonjs\",\"target\":\"es2020\"}' scripts/generate-llms-pages.ts",
"start": "cross-env NODE_ENV=production APP_ENV=production yarn build && next start -p 4033",
"start:staging": "cross-env NODE_ENV=production APP_ENV=staging next start -p 3005",
"build:staging": "cross-env NODE_ENV=production APP_ENV=staging next build",
Expand All @@ -18,6 +21,7 @@
"prepare": "husky install"
},
"dependencies": {
"@svgr/webpack": "^8.1.0",
"classnames": "2.3.1",
"cookie": "0.6.0",
"cross-env": "7.0.3",
Expand Down Expand Up @@ -76,7 +80,6 @@
"@types/swiper": "6.0.0",
"@types/uuid": "8.3.1",
"babel-loader": "8.2.5",
"cypress-real-events": "^1.15.0",
"eslint": "^9.32.0",
"eslint-config-next": "^15.4.4",
"husky": "^9.1.7",
Expand Down
23 changes: 23 additions & 0 deletions public/keepsimple_/assets/icons/oxford.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/keepsimple_/assets/tools/bob.skill
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/keepsimple_/assets/tools/container/dark-bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/keepsimple_/assets/tools/container/white-bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/keepsimple_/assets/tools/hero/black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/keepsimple_/assets/tools/hero/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/keepsimple_/assets/tools/hero/green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/keepsimple_/assets/tools/hero/white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions public/keepsimple_/assets/tools/logo/black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading