Commit graph

1117 commits

Author SHA1 Message Date
James Forbes
65cf256775 Suggested amendments 2022-04-27 21:01:09 +02:00
James Forbes
f3c59665b1 Update release docs 2022-04-27 21:01:09 +02:00
Stephan Hoyer
9906e23118 Fix naming 2022-03-02 07:35:35 +01:00
Pier Bover
1c07143be4 Rework jsx docs 2022-03-02 07:35:35 +01:00
tebe
53bedd1102
Add Simple Application Flems Supporting v2.0.4 and up (#2751) 2022-03-01 11:26:12 +01:00
Stephan Hoyer
69f5cbdf64 Make example work with webpack v5.69.1 2022-03-01 08:04:27 +01:00
Stephan Hoyer
94774e73b0 Center docs again 2022-02-27 18:54:11 +01:00
kevinfiol
0aed7797a7 2604: correct and move text about statements in view method 2022-02-22 16:00:40 +01:00
Patrik Johnson
b2b0c4abe3 Installation docs: Add link to flems playground and replace shorthand w/ with full word 2022-02-20 17:25:13 +01:00
Claudia Meadows
1eec62eb3e Add changelog entry for m.Fragment, update name in new changelog 2022-02-20 12:23:44 +01:00
Stephan Hoyer
885b3f9442 Consistent naming of Mithril.js 2022-02-19 12:06:39 +01:00
Stephan Hoyer
7b1fda5b66 Add meta description to docs 2022-02-19 12:06:39 +01:00
Per Eriksson
d93cca964e updated babel/webpack docs to work with latest versions 2022-02-18 09:11:51 +01:00
Pierre-Yves Gerardy
891265de8b [docs] route redirection using the history API 2022-02-18 09:11:25 +01:00
Stephan Hoyer
9128d4e60a Correctly handle invalid escapes in routes
based on 0a5ead31c9fbd7b153c521c7f9d3df7bf826ce6c
2022-02-18 07:05:35 +01:00
Stephan Hoyer
e4bd2039b4 Add notice to changelog 2022-02-12 12:19:35 +01:00
Barney Carroll
cea8e64359 Reverting erroneous docs formatting 2022-02-12 12:19:35 +01:00
Barney Carroll
30cc031bf2 Back out migration ToC, correct references to vnode shape 2022-02-12 12:19:35 +01:00
Barney Carroll
febd97aac2 Back out migration ToC, correct references to vnode shape 2022-02-12 12:19:35 +01:00
Barney Carroll
11bced844c Back out migration ToC, correct references to vnode shape 2022-02-12 12:19:35 +01:00
Barney Carroll
9999fbe2a4 Text is always represented as text vnodes, never as vnode.text 2022-02-12 12:19:35 +01:00
hqproto
a671da246d Update standalone usage 2022-02-09 20:38:56 +01:00
mike-ward
8ef7844f5a #2334 Dropdown to select docs for previous versions 2022-02-05 17:50:13 +01:00
James Cote
99c6d813d2
Send URLSearchParams as request body without extra configuration (#2695) 2022-01-31 10:12:02 +01:00
Eugene Epifanov
7faf358e92 Update code on flems.io and update the link to it
This page contains a link to an example running on **flems.io**
The code on **flems.io** depends on `mithrill@1.1.6` and doesn't work with `mithril@2.0.0-rc.4`.
I added `mithril@2.0.0-rc.4` on **flems.io** as a dependancy and fixed some issues caused by `mithrill.withAttr` no longer existing.
Now code on this page and on **flems.io** are identical.
2022-01-26 09:01:32 +01:00
Gabriel Aumala
c075ac7b49 docs: improve m.request return value description
In the m.request return value description, add a line informing that
error status codes cause the promise to reject.
2022-01-25 23:07:51 +01:00
Stephan Hoyer
893de8b4ff Add change notice about m.request adoption for no content handling 2022-01-25 22:30:16 +01:00
Pierre-Yves Gérardy
6aeb03837d Update change log 2022-01-25 21:44:45 +01:00
Per Eriksson
e66aaf1458
A note on JSX events (#2648)
Co-authored-by: Stephan Hoyer <ste.hoyer@gmail.com>
2022-01-25 21:43:03 +01:00
Barney Carroll
70aff8cd69 Better route cancellation example, addresses #1856 2022-01-25 21:30:38 +01:00
Barney Carroll
cd087347f7 Document route resolution cancellation, fixes #1759 2022-01-25 21:30:38 +01:00
Arthur Clemens
5f9c635cad Remove old TOC link
Content was moved some time ago and linked section no longer exists.
2021-08-17 22:34:07 -04:00
cavemansspa
718650dc87
Cavemansspa patch 1 (#2696) 2021-07-30 23:04:52 -07:00
Danylo Hlynskyi
773e570b86
simple-application.md: consistent use of type=submit (#2657)
When following tutorial and typing everything in, I was confused that Save button didn't work. Turned out that tutorial switches type from "button" to "submit", which I haven't spotted. Perhaps it should had been "submit" from start?
2021-02-14 14:59:27 -08:00
Isiah Meadows
045e4f720a
Allow Mithril to be loaded in non-browser environments without modification (#2633) 2020-10-14 03:12:47 -07:00
Oscar
3ad404039f
fix some typos (#2487)
* fix some typos

Found some typos. Mainly unescaped `|` in tables, but also a few other irregularities. Not all problems are visible in the website docs.

* fix `<>` and `|` rendering

Fix those symbols inside a Markdown table, so they render correctly on the website and Github.

Co-authored-by: Isiah Meadows <contact@isiahmeadows.com>
2020-10-06 17:29:09 -07:00
Isiah Meadows
9f0dc2ab46
Runtime-deprecate ospec, change change-log to changelog, fix a few assorted bugs (#2578) 2020-09-29 13:27:07 -07:00
Isiah Meadows
6d1dab07eb Fix assets [skip ci] 2020-09-14 18:55:29 -07:00
Miguel Espinoza
ff3e12e5d3
Update installation.md (#2608) [skip ci]
Co-authored-by: Isiah Meadows <contact@isiahmeadows.com>
2020-07-12 13:26:56 -07:00
Isiah Meadows
31d1df5caa
Fix #2601 (#2603)
Fix issue where ending a stream in the middle of a stream callback would result in erroneous parent stream state for the rest of that emit.
2020-06-16 08:36:40 -07:00
ZeikJT
cf7a841c4c
Remove extra isLifecycleMethod call from removeAttr (#2594) 2020-05-17 00:50:16 -07:00
kczx3
f9c9f6682d
ES6 and m.trust docs patch (#2593) 2020-05-07 15:19:36 -07:00
Denis Sikuler
0680f55893
Replace mocha by ospec in testing page (#2585) 2020-04-20 18:16:03 -07:00
akessner
39c08f967a
change link to go to ospec instead of mocha (#2576)
* change link to go to ospec instead of mocha

Updated link regarding [issue 2575](https://github.com/MithrilJS/mithril.js/issues/2575)

* Update docs/testing.md

Co-authored-by: Isiah Meadows <contact@isiahmeadows.com>
2020-03-15 13:33:49 -07:00
Isiah Meadows
d555498005
updated to the Vimeo showcase (#2573) 2020-03-04 19:37:35 -08:00
Boaz Blake
2ac9bfd363 adding more community examples (#2567)
Co-authored-by: Isiah Meadows <contact@isiahmeadows.com>
2020-01-08 15:39:38 -05:00
Kamil Tomšík
b34b3c3524 Exclude archive of previous docs (#2561)
* remove docs archive (fix #2552)

* Update docs/change-log.md

Co-Authored-By: Isiah Meadows <contact@isiahmeadows.com>

Co-authored-by: Isiah Meadows <contact@isiahmeadows.com>
2020-01-05 11:29:41 -05:00
Pierre-Yves Gérardy
4a3a486d80
Pimp the docs linter (and assorted changes) (#2553)
### Pimp the docs linter (and assorted changes)

 #### `scripts/lint-docs.js`

- Add an optional cache for faster runs
- Add a final report
- Don't return anything from `exec()`
- Cover more files

 #### `scripts/_command.js`

- Look for a "--cache" option

 #### `package.json` scripts

- Added `watch:lint-docs`
- Added `cleanup:lint` to remove the eslint and lint-docs cache files
- Changed `lint:docs` to use the `--cache` option
- Added `test:js` so that we can run the test suite without the linter
- Changed `test` to defer to `test:js`

 #### Actual lint fixes:

- Bad link in a migration guide
- The unicode dashes in the "https://en.wikipedia.org/wiki/Subject–verb–object" are not escaped by marked

### Some more lint-docs pimping

#### `scripts/lint-docs.js`

- some code reorg and cleanup (take a hint from the local coding conventions)
- fix misc bugs
- pass a User-Agent header to the requests
- even nicer reporting

#### `package.json`

- bump the @babel/parser dep to the latest

#### Docs

- tweaks based on lints missed due to previous bugs

### Docs: use the github page for velocity.js, the home page has too many errors.

Co-Authored-By: Isiah Meadows <contact@isiahmeadows.com>
2019-12-19 23:40:52 +01:00
Rasmus Porsager
d257025253 Flems in docs (#2348) [skip ci]
* Initial addition of flems - fixes #526

* Fix leftover ```js code blocks

* Add DOCTYPE

* Fix edge & IE11

* Don't show console

* Change orientation on mobile

* Use mithril@next for playground link

* Improve loading and structure

* Fix header alignment in IE

* Don't rotate logo

* Fix conflicts

* Allow `js` tags

* Fix code block query

* Fix Routing section and flems

* Fix firefox

* Improve flems styling

* Improve copy

* Fix data -> body in m.request sample

* Add flems in docs usage description
2019-10-14 13:06:39 -04:00
Isiah Meadows
512eef378e
Recast key docs to be much clearer and more accurate (#2540)
* Recast key docs to be much clearer and more accurate [skip ci]

Also, fix a couple broken hash links I noticed while making this.

* Ensure `diff` blocks are highlighted correctly
2019-10-11 04:29:11 -04:00