slidev-theme-tud 0.0.2 → 0.0.4

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.
package/README.md CHANGED
@@ -1,26 +1,17 @@
1
1
  # slidev-theme-tud
2
2
 
3
- A [TU Dresden](https://tu-dresden.de/) theme for [Slidev](https://github.com/slidevjs/slidev) (following the [new 2025 corporate desing](https://tu-dresden.de/tu-dresden/organisation/zentrale-universitaetsverwaltung/dezernat-7/sachgebiet-7-1-corporate-design/cd)).
3
+ [![npm version](https://img.shields.io/npm/v/slidev-theme-tud?logo=npm)](https://www.npmjs.com/package/slidev-theme-tud)
4
4
 
5
- <!--
6
- Put some screenshots here to demonstrate your theme
5
+ A [TU Dresden](https://tu-dresden.de/) theme for [Slidev](https://github.com/slidevjs/slidev) (following the [new 2025 corporate desing](https://tu-dresden.de/tu-dresden/organisation/zentrale-universitaetsverwaltung/dezernat-7/sachgebiet-7-1-corporate-design/cd)).
7
6
 
8
- Live demo: [...]
9
- -->
7
+ ![demo title slide](./screenshots/title-slide.svg)
10
8
 
11
9
  ## Usage
12
10
 
13
-
14
- `TODO`
15
- ~To see an example of how to use this theme please refer to [the example repository]()~
16
-
17
- If you really want to do it the hard way and wire things up manually
18
- then the following will try to give you some hints at least.
19
-
20
11
  You can install this theme into an existing repository using
21
12
 
22
13
  ```bash
23
- $ pnpm install git+ssh://git@github.com:maxkurze1/slidev-theme-tud.git
14
+ $ pnpm install slidev-theme-tud
24
15
  ```
25
16
 
26
17
  Then you should be able to use it by setting the `theme` in your frontmatter:
@@ -55,6 +46,6 @@ None
55
46
  ## Contributing
56
47
 
57
48
  - `pnpm install`
58
- - `pnpm run dev` to start theme preview of `example.md`
59
- - Edit the `example.md` and style to see the changes
49
+ - `pnpm run dev` to start theme preview of `example.mdc`
50
+ - Edit the `example.mdc` and style to see the changes
60
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slidev-theme-tud",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "description": "Corporate TUD theme for SliDev",
6
6
  "keywords": [
@@ -16,6 +16,21 @@
16
16
  "bugs": {
17
17
  "url": "https://github.com/maxkurze1/slidev-theme-tud/issues"
18
18
  },
19
+ "files": [
20
+ "assets",
21
+ "components",
22
+ "layouts",
23
+ "scripts",
24
+ "setup",
25
+ "styles",
26
+ "global-bottom.vue",
27
+ "global-top.vue",
28
+ "markdown.ts",
29
+ "shims.d.ts",
30
+ "uno.config.ts",
31
+ "vite.config.ts",
32
+ "example.mdc"
33
+ ],
19
34
  "publishConfig": {
20
35
  "access": "public"
21
36
  },
@@ -23,11 +38,11 @@
23
38
  "node": ">=18.0.0"
24
39
  },
25
40
  "dependencies": {
26
- "dayjs": "^1.11.20",
27
- "gsap": "^3.13.0",
28
- "katex": "^0.16.33",
41
+ "dayjs": "^1.11.23",
42
+ "gsap": "^3.15.0",
43
+ "katex": "^0.16.47",
29
44
  "stylus": "^0.64.0",
30
- "two.js": "^0.8.23"
45
+ "two.js": "^0.8.24"
31
46
  },
32
47
  "peerDependencies": {
33
48
  "slidev-component-progress": "*"
@@ -38,8 +53,8 @@
38
53
  }
39
54
  },
40
55
  "devDependencies": {
41
- "@slidev/cli": "^52.1.0",
42
- "@slidev/types": "^52.1.0",
56
+ "@slidev/cli": "^52.19.1",
57
+ "@slidev/types": "^52.19.1",
43
58
  "slidev-component-progress": "github:maxkurze1/slidev-component-progress"
44
59
  },
45
60
  "slidev": {
package/vite.config.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { resolve } from 'node:path'
2
2
  import { defineConfig } from 'vite'
3
- import { setupFootnotes, setupFigureCaptions, setupTableCaptions } from './markdown'
3
+ import { setupFootnotes, setupFigureCaptions, setupTableCaptions } from './markdown.ts'
4
4
 
5
5
  export default defineConfig({
6
6
  slidev: {
package/.envrc DELETED
@@ -1 +0,0 @@
1
- use flake
@@ -1,84 +0,0 @@
1
- # GitHub Pages deployment.
2
- #
3
- # Publishes two static sites and a root redirect to GitHub Pages:
4
- # • the VitePress docs → <pages-url>/docs
5
- # • the Slidev showcase → <pages-url>/demo
6
- # For a project page the site is served under /<repo>, so every base is
7
- # derived from BASE = "/slidev-theme-tud".
8
- name: Deploy Pages
9
-
10
- on:
11
- push:
12
- branches: [main]
13
- workflow_dispatch:
14
-
15
- # Permissions required by the Pages deployment.
16
- permissions:
17
- contents: read
18
- pages: write
19
- id-token: write
20
- actions: write
21
-
22
- # Allow only one concurrent deploy; don't cancel an in-progress run.
23
- concurrency:
24
- group: pages
25
- cancel-in-progress: false
26
-
27
- jobs:
28
- build:
29
- runs-on: ubuntu-latest
30
- env:
31
- # Path component of the Pages URL for this project page.
32
- BASE: /slidev-theme-tud
33
- # Absolute URL of the deck. config.ts passes this through as an external
34
- # link, so VitePress does NOT prefix it with the docs `base`.
35
- DEMO_URL: https://maxkurze1.github.io/slidev-theme-tud/demo/
36
- steps:
37
- - uses: actions/checkout@v4
38
-
39
- - uses: pnpm/action-setup@v4
40
-
41
- - uses: actions/setup-node@v4
42
- with:
43
- node-version: 24
44
- cache: pnpm
45
-
46
- - run: pnpm install --frozen-lockfile
47
-
48
- - uses: actions/configure-pages@v5
49
-
50
- - name: Build docs and demo
51
- run: |
52
- rm -rf _build && mkdir -p _build
53
-
54
- # Docs → /docs
55
- # DOCS_BASE="${BASE}/docs/" pnpm exec vitepress build docs
56
- # cp -r docs/.vitepress/dist _build/docs
57
-
58
- # Slidev deck → /demo
59
- pnpm exec slidev build example.mdc --base "${BASE}/demo/" --out "$PWD/_build/demo"
60
-
61
- # Pages root → docs
62
- printf '<!doctype html><meta http-equiv="refresh" content="0; url=./demo/">\n' > _build/index.html
63
-
64
- - name: Remove stale github-pages artifact
65
- env:
66
- GH_TOKEN: ${{ github.token }}
67
- run: |
68
- gh api "repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts" \
69
- --jq '.artifacts[] | select(.name == "github-pages") | .id' |
70
- xargs -r -I{} gh api -X DELETE "repos/${{ github.repository }}/actions/artifacts/{}"
71
-
72
- - uses: actions/upload-pages-artifact@v3
73
- with:
74
- path: _build
75
-
76
- deploy:
77
- needs: build
78
- runs-on: ubuntu-latest
79
- environment:
80
- name: github-pages
81
- url: ${{ steps.deployment.outputs.page_url }}
82
- steps:
83
- - id: deployment
84
- uses: actions/deploy-pages@v4
@@ -1,89 +0,0 @@
1
- # Automatic versioning + npm publish.
2
- #
3
- # * Every push to main -> automatic PATCH bump
4
- # * Manual "Run workflow" dispatch -> pick patch / minor / MAJOR (for breaking releases)
5
- #
6
- # The version lives ONLY in git tags -- package.json stays at the 0.0.0
7
- # placeholder in the repo. Each run derives the next version from the latest
8
- # tag, writes it into package.json ephemerally (never committed), publishes to
9
- # npm, then pushes just the tag (pointing at the released commit) and cuts a
10
- # GitHub release. No commit is ever made to main.
11
- #
12
- # Publishing uses npm "trusted publishing" (OIDC) -- no NPM_TOKEN. This requires
13
- # a Trusted Publisher for this workflow to be configured on npmjs.com (package
14
- # Settings -> Trusted Publisher -> GitHub Actions), which can only be done after
15
- # the package's first version exists. Bootstrap that first version once with a
16
- # local `npm login && pnpm publish`, then let this workflow take over.
17
- # NOTE: OIDC publish works on pnpm 10.x (pinned via packageManager) but is
18
- # broken on pnpm 11 -- do not bump pnpm without re-checking pnpm/pnpm#11513.
19
- name: Release
20
-
21
- on:
22
- push:
23
- branches: [main]
24
- workflow_dispatch:
25
- inputs:
26
- bump:
27
- description: "Version bump for this manual release"
28
- type: choice
29
- options: [patch, minor, major]
30
- default: major
31
-
32
- # contents: write -> push the tag and create the GitHub release.
33
- # id-token: write -> mint the OIDC token npm uses for trusted publishing.
34
- permissions:
35
- contents: write
36
- id-token: write
37
-
38
- # Serialize releases so two runs can't race on the version.
39
- concurrency:
40
- group: release
41
- cancel-in-progress: false
42
-
43
- jobs:
44
- release:
45
- runs-on: ubuntu-latest
46
- steps:
47
- - uses: actions/checkout@v4
48
- with:
49
- # Full history + tags so we can read the latest version tag.
50
- fetch-depth: 0
51
-
52
- - uses: pnpm/action-setup@v4
53
-
54
- - uses: actions/setup-node@v4
55
- with:
56
- node-version: 24
57
-
58
- - name: Compute next version
59
- id: version
60
- # Derive from the latest v* tag, then bump the requested part.
61
- # On push there is no input -> default to a patch bump.
62
- run: |
63
- BUMP="${{ github.event.inputs.bump || 'patch' }}"
64
- LATEST=$(git tag --list 'v*' --sort=-v:refname | head -n1)
65
- LATEST=${LATEST:-v0.0.0}
66
- IFS=. read -r MA MI PA <<< "${LATEST#v}"
67
- case "$BUMP" in
68
- major) MA=$((MA + 1)); MI=0; PA=0 ;;
69
- minor) MI=$((MI + 1)); PA=0 ;;
70
- patch) PA=$((PA + 1)) ;;
71
- esac
72
- NEW="$MA.$MI.$PA"
73
- echo "Bumping $LATEST -> v$NEW ($BUMP)"
74
- echo "tag=v$NEW" >> "$GITHUB_OUTPUT"
75
- echo "version=$NEW" >> "$GITHUB_OUTPUT"
76
-
77
- - name: Write version into package.json (not committed)
78
- run: npm version "${{ steps.version.outputs.version }}" --no-git-tag-version --allow-same-version
79
-
80
- - name: Publish to npm (OIDC trusted publishing)
81
- run: pnpm publish --no-git-checks
82
-
83
- - name: Tag the released commit
84
- env:
85
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86
- run: |
87
- git tag "${{ steps.version.outputs.tag }}"
88
- git push origin "${{ steps.version.outputs.tag }}"
89
- gh release create "${{ steps.version.outputs.tag }}" --generate-notes
@@ -1,3 +0,0 @@
1
- {
2
- "recommendations": ["antfu.slidev"]
3
- }
package/flake.lock DELETED
@@ -1,61 +0,0 @@
1
- {
2
- "nodes": {
3
- "flake-utils": {
4
- "inputs": {
5
- "systems": "systems"
6
- },
7
- "locked": {
8
- "lastModified": 1731533236,
9
- "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
10
- "owner": "numtide",
11
- "repo": "flake-utils",
12
- "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
13
- "type": "github"
14
- },
15
- "original": {
16
- "owner": "numtide",
17
- "repo": "flake-utils",
18
- "type": "github"
19
- }
20
- },
21
- "nixpkgs": {
22
- "locked": {
23
- "lastModified": 1768649915,
24
- "narHash": "sha256-jc21hKogFnxU7KXSVTRmxC7u5D4RHwm9BAvDf5/Z1Uo=",
25
- "owner": "nixos",
26
- "repo": "nixpkgs",
27
- "rev": "3e3f3c7f9977dc123c23ee21e8085ed63daf8c37",
28
- "type": "github"
29
- },
30
- "original": {
31
- "owner": "nixos",
32
- "ref": "release-25.05",
33
- "repo": "nixpkgs",
34
- "type": "github"
35
- }
36
- },
37
- "root": {
38
- "inputs": {
39
- "flake-utils": "flake-utils",
40
- "nixpkgs": "nixpkgs"
41
- }
42
- },
43
- "systems": {
44
- "locked": {
45
- "lastModified": 1681028828,
46
- "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
47
- "owner": "nix-systems",
48
- "repo": "default",
49
- "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
50
- "type": "github"
51
- },
52
- "original": {
53
- "owner": "nix-systems",
54
- "repo": "default",
55
- "type": "github"
56
- }
57
- }
58
- },
59
- "root": "root",
60
- "version": 7
61
- }
package/flake.nix DELETED
@@ -1,22 +0,0 @@
1
- {
2
- inputs = {
3
- nixpkgs.url = "github:nixos/nixpkgs/release-25.05";
4
- flake-utils.url = "github:numtide/flake-utils";
5
- };
6
-
7
- outputs = { self, nixpkgs, flake-utils }:
8
- flake-utils.lib.eachDefaultSystem (system:
9
- let
10
- pkgs = import nixpkgs {
11
- inherit system;
12
- overlays = [ ];
13
- };
14
- in
15
- {
16
- # devShells.default = self.packages.${system}.default;
17
- devShells.default = pkgs.mkShell {
18
- packages = [ pkgs.pnpm pkgs.nodejs ];
19
- };
20
- }
21
- );
22
- }
@@ -1,23 +0,0 @@
1
- overrides:
2
- '@babel/core@<=7.29.0': '>=7.29.6'
3
- dompurify@<3.3.2: '>=3.3.2'
4
- dompurify@<3.4.0: '>=3.4.0'
5
- dompurify@<3.4.7: '>=3.4.7'
6
- dompurify@<3.4.9: '>=3.4.9'
7
- dompurify@<=3.3.1: '>=3.3.2'
8
- dompurify@<=3.3.3: '>=3.4.0'
9
- dompurify@<=3.4.10: '>=3.4.11'
10
- dompurify@<=3.4.5: '>=3.4.6'
11
- dompurify@<=3.4.6: '>=3.4.7'
12
- dompurify@>=1.0.10 <3.4.0: '>=3.4.0'
13
- dompurify@>=3.0.0 <=3.4.7: '>=3.4.8'
14
- dompurify@>=3.0.1 <3.4.0: '>=3.4.0'
15
- dompurify@>=3.1.3 <=3.3.1: '>=3.3.2'
16
- esbuild@>=0.27.3 <0.28.1: '>=0.28.1'
17
- js-yaml@<3.15.0: '>=3.15.0'
18
- js-yaml@>=4.0.0 <=4.1.1: '>=4.2.0'
19
- linkify-it@<=5.0.0: '>=5.0.1'
20
- markdown-it@<=14.1.1: '>=14.2.0'
21
- mermaid@>=11.0.0-alpha.1 <=11.14.0: '>=11.15.0'
22
- uuid@<11.1.1: '>=11.1.1'
23
- vite@>=7.0.0 <=7.3.4: '>=7.3.5'
package/tsconfig.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ESNext",
4
- "module": "ESNext",
5
- "moduleResolution": "Bundler",
6
- "jsx": "preserve",
7
- "lib": ["ESNext", "DOM", "DOM.Iterable"],
8
- "types": ["vite/client", "@slidev/types"],
9
- "resolveJsonModule": true,
10
- "esModuleInterop": true,
11
- "allowImportingTsExtensions": true,
12
- "skipLibCheck": true,
13
- "noEmit": true,
14
- "strict": false, // Non-strict on purpose
15
- "noImplicitAny": false
16
- },
17
- "vueCompilerOptions": {
18
- "target": 3.5
19
- },
20
- "include": [
21
- "*.ts",
22
- "*.vue",
23
- "shims.d.ts",
24
- "layouts/**/*.vue",
25
- "components/**/*.vue",
26
- "setup/**/*",
27
- "scripts/**/*"
28
- ],
29
- "exclude": ["node_modules", "dist", ".direnv", "resources"]
30
- }