0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
Commit Graph

740 Commits

Author SHA1 Message Date
Ben McCann
009ce45e63
site: tweak content layout (#8483) 2023-04-11 10:14:14 -07:00
Puru Vijay
beb3f653ee
docs(site-2): CJS to ESM for code snippets (#8449) 2023-04-03 15:29:39 -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
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
Nguyen Tran
fed93ab9e1
feat: add a11y interactive-supports-focus (#8392)
#820
2023-03-20 13:18:54 +01:00
Cavit Ertuğrul Sırt
7e9e78b37c
docs: Tutorial body had <svelte:body /> even though <svelte:document /> was the subject (#8396) 2023-03-19 15:20:20 +09:00
Dave Lunny
f56fe33931
feat: bind:innerText for contenteditable (#4291)
closes #3311

---------

Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2023-03-16 10:58:49 +01:00
Kazuma Oe
a45afd5393
docs: add <svelte:document> example (#8387) 2023-03-16 09:04:26 +01:00
Henrik Giesel
4b0b471ee1
feat: add back <svelte:document> (#7149)
Closes #3310

---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-03-15 16:38:03 +01:00
Bob Fanger
6aee49bad3
feat: css units in fly & blur transitions (#7623)
Closes #6050

---------

Co-authored-by: Bob Fanger <b.fanger@wearetriple.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-03-15 12:40:49 +01:00
Nguyen Tran
26c38e750c
feat: add a11y no-noninteractive-element-to-interactive-role (#8167)
Part of #820
2023-03-14 10:51:40 +01:00
Brandon McConnell
e2b9df1888
docs: update 06-accessibility-warnings.md (#8342)
Convert recommended events to use Svelte syntax, and include deprecation warning re https://developer.mozilla.org/en-US/docs/Web/API/Element/keypress_event
2023-03-02 12:38:43 +01:00
Brad Dougherty
dd371f58fe
feat: add readyState binding for media elements (#6843)
Closes #6666

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-03-01 11:54:00 +01:00
Tan Li Hau
c611f318d2
feat: add stopImmediatePropagation event modifier (#8341)
Closes #5085

---------

Co-authored-by: Marcin Wicha <23581770+marcin-wicha@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-03-01 11:51:40 +01:00
Invader Zim
d4363510fc
docs: add console output instruction to tutorial (#8336) 2023-02-28 09:44:39 +01:00
Theodor Steiner
c7bbe55b9f
feat: introduce axis parameter to allow for horizontal slide transition (#6183)
---------

Co-authored-by: Tan Li Hau <tanhauhau@users.noreply.github.com>
2023-02-27 17:58:23 +01:00
Nguyen Tran
b56dfe51a8
feat: add a11y role-supports-aria-props (#8195)
#820

---------

Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2023-02-27 12:28:59 +01:00
Yuichiro Yamashita
3423bf6b30
add docs (#8326) 2023-02-26 22:40:36 +08:00
Tan Li Hau
d16dd5d7ca
feat: add naturalWidth and naturalHeight bindings (#7857)
Closes #7771
---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2023-02-24 14:20:44 +01:00
Mike Randazzo
487fedce6c
docs: describe that bind:value creates a two-way binding (#8311)
---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-02-23 13:46:08 +01:00
Alvin Ramskogler
9f89a92d31
feat: add readonly method to convert writable store to readonly (#6518) 2023-02-23 12:17:34 +01:00
ngtr6788
3559997223
feat: implement a11y aria-activedescendant-has-tabindex (#8172)
#820
2023-02-22 17:14:21 +01:00
brunnerh
e3e912ab58
Fix accessibility of options tutorial. (#8308)
Use button instead of non-interactive element (div).
(Removes a Svelte a11y warning.)
2023-02-22 09:51:26 +01:00
Rémi Marche
57d869d028
[docs] move @html tutorial to end (partly fixing #7253) (#7254)
* Move @html tutorial to end

* move debug and html tag into one section

* rename

---------

Co-authored-by: Rémi Marche <35939574+Marr11317@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2023-02-21 20:00:15 +01:00
Jhorman Ruswel ㅠㅠ
85f882f23d
docs: update Keyed Each Blocks tutorial (#8188)
log which element is removed

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-02-21 13:13:50 +01:00
Simon H
324b791d81
docs: note #if to wrap text only
taken from #7070
2023-02-21 13:04:12 +01:00
Hyunbin
213049cc2e
docs: update dialog example (#8200)
* feat: update dialog example

* button always autofocusses, allows us to simplify

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-02-21 12:07:33 +01:00
Mike Plummer
7a6eee51e0
docs: Expand testing FAQ section (#8205)
---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-02-21 11:54:00 +01:00
Maxime Dupont
4dd12c0c61
docs: fix fly animation description (#8236) 2023-02-21 11:33:01 +01:00
James Scott-Brown
acba4b72e2
docs: clarify bindings for <select multiple> (#8260)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-02-14 10:04:49 -08:00
Alicia Sykes
0598c989a0
docs: corrects syntax error in transition code sample (#8169)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-02-14 08:57:07 -08:00
Kyrre Gjerstad
d7e4b1c8fc
docs: fix minor typos (#8268)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-02-14 08:25:23 -08:00
James Scott-Brown
ff5c14dc71
docs: format window.navigator.onLine reference as code (#8262) 2023-02-14 08:19:57 -08:00
James Scott-Brown
7706a5f713
docs: link to MDN page on void elements (#8261) 2023-02-14 08:18:06 -08:00
Satvik
6ac24f1d5c
[docs] add missing semicolon (#8190) 2023-02-05 21:00:54 +09:00
Josh
aa98397440
[docs] fix typo (#8180) 2023-01-10 09:38:47 +01:00
wackbyte
094483b397
[fix] say "nonnegative" instead of "positive" tabIndex for a11y-no-noninteractive-tabindex (#8126) 2023-01-02 09:39:55 +08:00
Simon H
b8f32c0b1a
[docs] clear timeout on destroy
backported from https://github.com/sveltejs/learn.svelte.dev/pull/166
2022-12-22 17:47:52 +01:00
Geoff Rich
6a23d9b65f
[docs] fix transition direction options (#8133) 2022-12-22 09:39:36 +09:00
Rich Harris
b8bc1be0a8
remove blog content. it now lives in sites repo (#8117) 2022-12-20 08:09:50 -08:00
gaac510
eef125f6c1
[docs] update outdated SvelteKit release info (#8128)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2022-12-19 22:47:31 +01:00
Simon H
670f458056
[docs] adjust code snippet to conform with previous one
Backported from https://github.com/sveltejs/learn.svelte.dev/pull/143
2022-12-16 10:33:36 +01:00
Nilesh
ad8dbfb9b9
[docs] Add comment about generating a Svelte project without Kit (#8115) 2022-12-15 13:47:02 +01:00
Ben McCann
a0a6bd1f54
[docs] add some basic docs about bundler plugins (#8092) 2022-12-07 11:04:50 -08:00
Yuichiro Yamashita
cc52dc442b
[docs] add explanation about property binding order (#7833)
* update document

* update sentence and position

* update the sentence

* update
2022-12-05 23:18:29 +08:00
Daniel Huang
f45b823770
[docs] fix inconsistent margin in svelte/motion spring tutorial (#8081) 2022-12-06 00:14:11 +09:00
Pat Cavit
84d61c61f8
[feat] Add options w/ direction to transitions (#8068) 2022-12-05 22:43:59 +09:00
Sanguansak Petchmeesri
14f33cfe61
[docs] add rel noreferrer to fix warning in tutorial (#8024)
Co-authored-by: vaishnav <vaishnav240204@gmail.com>
Co-authored-by: Alfredo Vecino <fredovecino@gmail.com>
Co-authored-by: Yuichiro Yamashita <xydybaseball@gmail.com>
2022-12-04 00:42:34 +09:00
Janosh Riebesell
8b462fd7da
[docs] Fix 3.52.0 a11y warning in svelte-self tutorial (#7988)
* fix svelte 3.52 a11y warning

* replace span with button and drop on:keyup
2022-12-03 23:55:51 +09:00
Christian Bromann
e86c0c610b
[docs] Add WebdriverIO as alternative testing solution 2022-12-03 14:03:45 +09:00