Skip to content

Commit 0898fa5

Browse files
committed
Update docs
- Update deps
1 parent 0b291f0 commit 0898fa5

File tree

13 files changed

+279
-54
lines changed

13 files changed

+279
-54
lines changed

.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"paket": {
6-
"version": "6.0.13",
6+
"version": "6.2.1",
77
"commands": [
88
"paket"
99
]
@@ -15,7 +15,7 @@
1515
]
1616
},
1717
"fable-py": {
18-
"version": "4.0.0-alpha-021",
18+
"version": "4.0.0-alpha-025",
1919
"commands": [
2020
"fable-py"
2121
]

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ library until we decide how to deal with Python version handling.
2727
Prerequisite for compiling F# to Python using Fable:
2828

2929
```sh
30-
> dotnet tool install --global fable-py --version 4.0.0-alpha-021
31-
> dotnet add package Fable.Core.Experimental --version 4.0.0-alpha-021
30+
> dotnet tool install --global fable-py --version 4.0.0-alpha-022
31+
> dotnet add package Fable.Core.Experimental --version 4.0.0-alpha-022
3232
```
3333

3434
To use the `Fable.Python` library in your Fable project:
@@ -52,13 +52,6 @@ To compile an F# Fable project to Python run e.g:
5252
> dotnet fable-py MyProject.fsproj
5353
```
5454

55-
# Libraries that uses or works with Fable Python
56-
57-
- [AsyncRx](https://github.com/dbrattli/AsyncRx)
58-
- [Fable.SimpleJson.Python](https://github.com/Zaid-Ajaj/Fable.SimpleJson.Python)
59-
- [Feliz.ViewEngine](https://github.com/dbrattli/Feliz.ViewEngine)
60-
- [TypedCssClasses](https://github.com/zanaptak/TypedCssClasses)
61-
6255
For more examples see the
6356
[examples](https://github.com/dbrattli/Fable.Python/tree/main/examples) folder.
6457
It contains example code for using Fable Python with:
@@ -72,6 +65,13 @@ It contains example code for using Fable Python with:
7265
[FSharp.Control.AsyncRx](https://github.com/dbrattli/AsyncRx) as a nuget
7366
package.
7467

68+
## Libraries that uses or works with Fable Python
69+
70+
- [AsyncRx](https://github.com/dbrattli/AsyncRx)
71+
- [Fable.Sedlex](https://github.com/thautwarm/Fable.Sedlex)
72+
- [Fable.SimpleJson.Python](https://github.com/Zaid-Ajaj/Fable.SimpleJson.Python)
73+
- [Feliz.ViewEngine](https://github.com/dbrattli/Feliz.ViewEngine)
74+
- [TypedCssClasses](https://github.com/zanaptak/TypedCssClasses)
7575

7676
## Contributing
7777

docs/_sources/dotnet/numbers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Numeric types
22

3-
In Fable, we use F# numeric types, which are all translated to JS Number (64-bit floating type) at the exception of `int64`, `uint64`, `bigint` and `decimal`.
3+
In Fable, we use F# numeric types, which are all translated to Python integers at the exception of `float`, `double`, and `decimal`.
44

5-
Fable numbers are very nearly compatible with .NET semantics, but translating into Javascript types has consequences:
5+
Fable numbers are very nearly compatible with .NET semantics, but translating into Python types has consequences:
66

77
* (non-standard) All floating point numbers are implemented as 64 bit (`double`). This makes `float32` numbers more accurate than expected.
88
* (non-standard) Arithmetic integers of 32 bits or less are implemented with different truncation from that expected, as whole numbers embedded within `double`.

docs/_sources/index.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
# Python you can be proud of!
22

3-
<!--
4-
Index page of Fable is mostly written using HTML because it needs specific layouts
5-
6-
It is still process as markdown by Nacara so we get nice snippet coloration and also
7-
benefit of the navbar generation and same style across all Fable website
8-
-->
9-
103
````{panels}
11-
Type safety without the hassle
4+
<img src="/static/img/fsharp.png" /> **Functional programming and more**
125
^^^
136
Immutable by default. Powerful pattern matching. Lightweight syntax. Units of measure. Type providers. Enjoy.
14-
+++
15-
Panel footer 1
167
---
17-
18-
Type safety without the hassle
8+
<span class="icon is-small has-text-black"><i class="fas fa-lock fa-2x"></i></span> **Type safety without the hassle**
199
^^^
2010
Type inference provides robustness and correctness, but without the cost of additional code. Let the compiler catch bugs for you.
21-
+++
22-
Panel footer 2
2311
````
2412

2513
<!-- Disable the copy-button on all the elements contained inside the container (all this page) -->
@@ -250,8 +238,8 @@ task {
250238
type OptionBuilder() =
251239
member __.Bind(opt, binder) =
252240
match opt with
253-
| Some value -> binder value
254-
| None -> None
241+
| Some value -> binder value
242+
| None -> None
255243
member __.Return(value) =
256244
Some value
257245

docs/dotnet/numbers.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ <h1 class="site-logo" id="site-title">Fable Python</h1>
284284

285285
<div class="tex2jax_ignore mathjax_ignore section" id="numeric-types">
286286
<h1>Numeric types<a class="headerlink" href="#numeric-types" title="Permalink to this headline"></a></h1>
287-
<p>In Fable, we use F# numeric types, which are all translated to JS Number (64-bit floating type) at the exception of <code class="docutils literal notranslate"><span class="pre">int64</span></code>, <code class="docutils literal notranslate"><span class="pre">uint64</span></code>, <code class="docutils literal notranslate"><span class="pre">bigint</span></code> and <code class="docutils literal notranslate"><span class="pre">decimal</span></code>.</p>
288-
<p>Fable numbers are very nearly compatible with .NET semantics, but translating into Javascript types has consequences:</p>
287+
<p>In Fable, we use F# numeric types, which are all translated to Python integers at the exception of <code class="docutils literal notranslate"><span class="pre">float</span></code>, <code class="docutils literal notranslate"><span class="pre">double</span></code>, and <code class="docutils literal notranslate"><span class="pre">decimal</span></code>.</p>
288+
<p>Fable numbers are very nearly compatible with .NET semantics, but translating into Python types has consequences:</p>
289289
<ul class="simple">
290290
<li><p>(non-standard) All floating point numbers are implemented as 64 bit (<code class="docutils literal notranslate"><span class="pre">double</span></code>). This makes <code class="docutils literal notranslate"><span class="pre">float32</span></code> numbers more accurate than expected.</p></li>
291291
<li><p>(non-standard) Arithmetic integers of 32 bits or less are implemented with different truncation from that expected, as whole numbers embedded within <code class="docutils literal notranslate"><span class="pre">double</span></code>.</p></li>

docs/index.html

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -265,38 +265,26 @@ <h1 class="site-logo" id="site-title">Fable Python</h1>
265265

266266
<div class="tex2jax_ignore mathjax_ignore section" id="python-you-can-be-proud-of">
267267
<h1>Python you can be proud of!<a class="headerlink" href="#python-you-can-be-proud-of" title="Permalink to this headline"></a></h1>
268-
<!--
269-
Index page of Fable is mostly written using HTML because it needs specific layouts
270-
271-
It is still process as markdown by Nacara so we get nice snippet coloration and also
272-
benefit of the navbar generation and same style across all Fable website
273-
-->
274268
<div class="sphinx-bs container pb-4 docutils">
275269
<div class="row docutils">
276270
<div class="d-flex col-lg-6 col-md-6 col-sm-6 col-xs-12 p-2 docutils">
277271
<div class="card w-100 shadow docutils">
278272
<div class="card-header docutils">
279-
<p class="card-text">Type safety without the hassle</p>
273+
<p class="card-text"><img src="/static/img/fsharp.png" /> <strong>Functional programming and more</strong></p>
280274
</div>
281275
<div class="card-body docutils">
282276
<p class="card-text">Immutable by default. Powerful pattern matching. Lightweight syntax. Units of measure. Type providers. Enjoy.</p>
283277
</div>
284-
<div class="card-footer docutils">
285-
<p class="card-text">Panel footer 1</p>
286-
</div>
287278
</div>
288279
</div>
289280
<div class="d-flex col-lg-6 col-md-6 col-sm-6 col-xs-12 p-2 docutils">
290281
<div class="card w-100 shadow docutils">
291282
<div class="card-header docutils">
292-
<p class="card-text">Type safety without the hassle</p>
283+
<p class="card-text"><span class="icon is-small has-text-black"><i class="fas fa-lock fa-2x"></i></span> <strong>Type safety without the hassle</strong></p>
293284
</div>
294285
<div class="card-body docutils">
295286
<p class="card-text">Type inference provides robustness and correctness, but without the cost of additional code. Let the compiler catch bugs for you.</p>
296287
</div>
297-
<div class="card-footer docutils">
298-
<p class="card-text">Panel footer 2</p>
299-
</div>
300288
</div>
301289
</div>
302290
</div>
@@ -526,8 +514,8 @@ <h4 class="title has-text-primary">
526514
<span class="k">type</span> <span class="nc">OptionBuilder</span><span class="bp">()</span> <span class="o">=</span>
527515
<span class="k">member</span> <span class="n">__</span><span class="p">.</span><span class="nf">Bind</span><span class="o">(</span><span class="n">opt</span><span class="o">,</span> <span class="n">binder</span><span class="o">)</span> <span class="o">=</span>
528516
<span class="k">match</span> <span class="n">opt</span> <span class="k">with</span>
529-
<span class="o">|</span> <span class="n">Some</span> <span class="n">value</span> <span class="o">-&gt;</span> <span class="n">binder</span> <span class="n">value</span>
530-
<span class="o">|</span> <span class="n">None</span> <span class="o">-&gt;</span> <span class="n">None</span>
517+
<span class="o">|</span> <span class="n">Some</span> <span class="n">value</span> <span class="o">-&gt;</span> <span class="n">binder</span> <span class="n">value</span>
518+
<span class="o">|</span> <span class="n">None</span> <span class="o">-&gt;</span> <span class="n">None</span>
531519
<span class="k">member</span> <span class="n">__</span><span class="p">.</span><span class="nf">Return</span><span class="o">(</span><span class="n">value</span><span class="o">)</span> <span class="o">=</span>
532520
<span class="n">Some</span> <span class="n">value</span>
533521

docs/notebooks.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ <h2>Code blocks and outputs<a class="headerlink" href="#code-blocks-and-outputs"
351351
</div>
352352
</div>
353353
<div class="cell_output docutils container">
354-
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.pyplot._IonContext at 0x103ff67a0&gt;
354+
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.pyplot._IonContext at 0x10f8b8220&gt;
355355
</pre></div>
356356
</div>
357357
</div>

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/flask/paket.dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ source https://api.nuget.org/v3/index.json
22
framework: net6.0
33
storage: none
44

5-
nuget Fable.Core.Experimental >= 4.0.0-alpha-015
5+
nuget Fable.Core.Experimental >= 4.0.0-alpha-022
66
nuget Fable.Python
77
nuget Feliz.ViewEngine
88
nuget Zanaptak.TypedCssClasses

examples/flask/paket.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ STORAGE: NONE
22
RESTRICTION: == net6.0
33
NUGET
44
remote: https://api.nuget.org/v3/index.json
5-
Fable.Core.Experimental (4.0.0-alpha-015)
5+
Fable.Core.Experimental (4.0.0-alpha-021)
66
Fable.Python (0.16)
77
Fable.Core.Experimental (>= 4.0.0-alpha-006)
88
FSharp.Core (>= 4.7.2)

0 commit comments

Comments
 (0)