0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-29 16:36:44 +01:00
Commit Graph

94 Commits

Author SHA1 Message Date
Puru Vijay
273c7318d2
feat(site-2): docs edit button (#8593)
* Add edit button

* Update deps
2023-05-17 17:14:38 +05:30
Puru Vijay
543e93bcf4 fix(site-2): Use dynamic LOCAL_SVELTE_PATH 2023-05-16 20:50:05 +05:30
Puru Vijay
bb0d34bbd0
feat(site-2): Accessibility (#8579)
* Push

* Push

* Fix Contents order

* Skip link to left sidemenu

* Add text class

* use top-nav slot

* Improve imagetools

* Fix aria-label

* Bump site-kit
2023-05-16 20:48:44 +05:30
gtmnayan
d652ddbbd0 make the triangle bot less verbose 2023-05-15 09:19:07 +05:45
Puru Vijay
f3396cfd4c chore(site-2): Run prettier 2023-05-14 11:20:43 +05:30
Puru Vijay
21a0141b8c
feat(site-2, v4): pnpm workspace (#8586)
* Push

* Push
2023-05-14 11:13:44 +05:30
Puru Vijay
f363af7cca
site -> documentation (#8585) 2023-05-13 08:06:21 -07:00
Puru Vijay
c967b81311 chore(site-2): Update deps 2023-05-13 18:54:19 +05:30
Puru Vijay
1e2ad9233e fix: Post merge pnpm issues 2023-05-13 12:05:49 +05:30
Puru Vijay
fbd3ccdf80 Merge remote-tracking branch 'origin/version-4' into sites 2023-05-13 11:39:13 +05:30
Puru Vijay
5a671cbfc0
feat(site-2): New REPL (#8545) 2023-05-12 16:53:15 -07:00
Puru Vijay
52028a09ba
fix(site-2): Restyle home page (#8454)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-05-12 08:39:15 -07:00
Puru Vijay
fd9088bbf5 chore: Reinstall packages 2023-05-11 15:26:26 +05:30
Puru Vijay
9bee59cc4f
feat(site-2): TS in docs (#8452)
* Commit

* Push working type generation code

* Fix type gen script invocation

* Delete type-info.js

* Change build script

* Recreate package lock

* mkdir generated

* Add type references to some pages

* Add TS-able snippets to docs examples

* Fix some stuff

* Add types to individual functions

* Add to store page

* Refactor compile-types.js

* Move ts sourcefile stuff to compile-types

* Remove commented code

* Half attempt at export aliases

* Add

* Fix, add disclaimer for svelte/internal

* Disable /docs prerendering

* Remove internals page

* Remove redundant stuff

* Make search work with it

* Fix compile types logic

* Add file: comment,

* Add two-slash to docs pages

* Get type links working

* Remove console.log

* Add action module

* Fix actions logic

* Make compile-types logic more robust

* Bump site-kit

* Fix gitignore

* Use moduleResolution bundler

* Don't apply shiki-twoslash to auto generated code snippets from render

* Recreate package lock

* Make TSbpage undraft

* Fix svelte component types

* Remove console.log

* No more sveltekit

* Make regex smarter

* Update sites/svelte.dev/scripts/type-gen/compile-types.js

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

* Rebuild package lock

* Remove commented out code

* Update deps

* Remove $$_attributes

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-05-11 14:18:57 +05:30
Puru Vijay
b9ea60cff4
fix(site-2): Remove marked warnings (#8574) 2023-05-10 08:24:10 +05:30
Puru Vijay
3b4ab35b4e
feat(site-2): Use entries (#8570)
* Push

* Image stuff

* Use entries

* Update deps

* Update kit
2023-05-09 21:39:07 +05:30
Puru Vijay
23d63c760a chore: Rebuild package.lock 2023-05-01 02:07:37 +05:30
Puru Vijay
ce686c95d1
chore: Upgrade to Vite 4.3 (#8524) 2023-04-20 23:21:33 +05:30
Puru Vijay
45f2890261
feat(site-2): Remove legacy site-kit stuff (#8501)
* Push

* Update site-kit

* Update svelte REPL

* Remove rollup URL

* meh

* Modify sidebar colors

* Bump deps
2023-04-18 05:04:46 +05:30
Puru Vijay
92a06e971c chore: run npm install 2023-04-15 12:16:00 +05:30
Puru Vijay
92e62c9316 Update deps 2023-04-12 15:06:31 +05:30
Puru Vijay
71d173a4c0 feat: Add home slot 2023-04-11 23:25:20 +05:30
Puru Vijay
ec733593e6 fix: Old site redirects 2023-04-11 23:18:26 +05:30
Ben McCann
009ce45e63
site: tweak content layout (#8483) 2023-04-11 10:14:14 -07:00
Puru Vijay
99979959c0
Update readme (#8453) 2023-04-05 18:06:59 +02:00
Puru Vijay
1e982c1e6d chore: Run prettier 2023-04-05 15:51:47 +05:30
Puru Vijay
04d4592299 chore: Update deps 2023-04-05 15:29:50 +05:30
Puru Vijay
050c1031b7
feat(site-2): Make blog logic consistent with other content (#8447) 2023-04-03 11:46:46 -07:00
Puru Vijay
b569018fef
feat(site-2): Split docs (#8435)
* Update links

* Move blog to site/content

* Update site/content/docs/02-component-format.md

* Fix docs links

* Add global prettierrc

* Auto format

* Fix git merge artifact

* Fix errors

* Update html to svelte(remaining ones)

* Add 2 blog posts

* Modify prettierrc

* Minor design fix

* Switch package lock to spaces, prettier ignore

* Regenerate package lock

* prettier format

* Push

* Remove console.logs

* Minor fixes

* Fix search

* Fix heading <code> style

* Fix search some more

* Code cleanup

* Update deps

* Move content around

* Allow drafts

* Redirect logic

* Don't render anything on docs if /docs

* Shorten the regex patterns

* Fix some more

* Hack the build into working

* Modernize docs links

* Add content to introduction

* Modify the content

* fix content links

* Reduce duplication in redirect regex

* Differences from Kit page

* Fix link

* Make OnThisPage visible on all docs

* Misc changes

* Move differences page to introduction

* Run prettier

* Prerender examples api routes

* Modify introdution page

* replace positions of readonly and get

* Minor blog style enhancement

---------

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
2023-04-03 14:18:50 -04:00
Puru Vijay
95abaec32a chore(site-2): Update deps 2023-04-03 00:44:20 +05:30
Puru Vijay
db2d07f236
feat(site-2): Update links, move blog out of SK folder to content (#8289)
* Update links

* Move blog to site/content

* Update site/content/docs/02-component-format.md

* Fix docs links

* Add global prettierrc

* Auto format

* Fix git merge artifact

* Fix errors

* Update html to svelte(remaining ones)

* Add 2 blog posts

* Modify prettierrc

* Minor design fix

* Switch package lock to spaces, prettier ignore

* Regenerate package lock

* prettier format

* Update deps

* Hack the build into working

* add missing blog post

---------

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Rich Harris <git@rich-harris.dev>
2023-04-02 11:24:33 -04:00
Puru Vijay
5976de8f82
feat(site-2): Fully remove api.svelte.dev (#8432)
* Localize the examples dependents

* Localize FAQ

* Try to fix examples API

* Remove examples api

* Prerender, use vercel adapter, disable PUT action for now

* Don't call get_examples_data on top

* Move repl PUT to its own routew

* Don't prerender REPL page

* Change console warn

* Prerender tutorial the smart way

* Use getContext in root

* work around some weird content encoding glitch

* Try the pre-generate route

* Apply the suggestions

* Fix embed examples

* Remove comment

* remove commented-out code

* Update sites/svelte.dev/src/routes/_components/Demo.svelte

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>

* remove unused code

* add note to self, remove ts-ignore

* move adapter-vercel to devDependencies

* remove some unused deps

* huh we need flexsearch after all? weird

* we need sourcemap-codec as well — what the hell. are these deps missing from a dep?

---------

Co-authored-by: Rich Harris <git@rich-harris.dev>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
2023-04-02 10:35:10 -04:00
Puru Vijay
9793b41817
feat(site-2): Local examples (#8431)
* feat(docs): Local tutorial

* Refactor some stuff

* Better error handling

* Fix search imports

* Prerender tutorial

* try prerendering hack

* fix super stupid display hidden bug

* Shorten the rendered URL

* Shorten URL code even more

* Prerender in svelte.config.js

* Refactor

* Fix ScreenToggle dark mode styles

* Initial POC

* Rvert to old hack

* Fix svelte-document.jpg
2023-03-29 14:10:31 +02:00
Puru Vijay
35e7a852fc
feat(site-2): Local tutorial (#8427)
* feat(docs): Local tutorial

* Refactor some stuff

* Better error handling

* Fix search imports

* Prerender tutorial

* try prerendering hack

* fix super stupid display hidden bug

* Shorten the rendered URL

* Shorten URL code even more
2023-03-29 14:07:21 +02:00
Puru Vijay
99611ad82e Fix search 2023-03-29 03:16:46 +05:30
Simon Holthausen
bad1780d48 chore: bump site-kit, use new components
- use search components
- use shell component
2023-03-28 12:47:06 +02:00
Puru Vijay
339ea85d55
fix(site-2): styles (#8288) 2023-03-24 12:58:15 +01:00
Puru Vijay
df2bb23af4
feat: search and backlink compatability (#8286)
* Copy the right files

* Finish search

* FIx accessibility issues

* Add original site compatibility back in

* Remove console.log

* Reorganize imports

* Minor refactor

* Fix undefined heading issue

* Replace state on redirect

* Don't redirect to docs/introduction from navbar

* Cleanup search

* Cleanup some more(html entities)

* Remove console log

* Minor style tweaks

* Put search in middle
2023-02-16 16:37:44 +05:30
Puru Vijay
dd960327f2 Update deps 2023-02-14 14:53:36 +05:30
Puru Vijay
79db9b180d
feat: Proper dark mode (#8274)
* Push

* Update svelte REPL

* Light mode fixes

* Fox height issues

* Moar dark mode fixes

* More changes

* Fix zen mode height issue
2023-02-13 14:47:53 +05:30
Puru Vijay
69349319eb
feat: multi-page docs (#8253)
* Rename markdown to blog

* Multi-page docs

* Ignore missing ID for now

* heading

* Add code snippets(temporary)

* /docs redirects to introduction

* Remove ukraine petition

* OnThisPage

* Remove console.log

* Update deps

* Fix accessibility warning

* Update site-kit
2023-02-07 16:28:30 +05:30
Puru Vijay
7afee765fc Add blurb back in 2023-02-03 13:53:32 +05:30
Puru Vijay
60806f74b9
[feat]: Move svelte.dev here (#8237)
* Push

* Remove `rootDir`

* Use tsconfig instead of jsconfig

* Push recent changes

* Better dark mode

* empty commit to try and trigger a deploy

* bump kit

* Fix site-kit dep

* Comment out blurb

* Update site-kit to 3.2.1

* Externalise sourcemap-codec

* Install sourcemap-codec as dep

---------

Co-authored-by: Rich Harris <hello@rich-harris.dev>
2023-02-02 15:45:09 -05:00
Puru Vijay
ae2a089221 feat: Initialize sites 2023-01-25 14:37:21 +05:30