Skip to content

Commit 2ffc54c

Browse files
committed
Fix: some wrong make fule rules inside documentation
1 parent 2e3ad93 commit 2ffc54c

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

Diff for: .github/workflows/jsdist.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Javascript Distribution
22

33
on:
4-
push:
5-
branches: [ master ]
64
release:
75
types: [created]
86

Diff for: adia/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .renderer import Renderer
1212

1313

14-
__version__ = '0.4.1'
14+
__version__ = '0.4.2'
1515
__all__ = [
1616
'Diagram',
1717
'SequenceDiagram',

Diff for: documentation/contributing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Run:
9797

9898
.. code-block:: bash
9999
100-
make clean serve
100+
make clean webclinic_serve
101101
102102
To build and serve the client side test files.
103103

Diff for: documentation/javascriptapi.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ directory, where you can fetch it by a URL. then load it using:
4141
try:
4242
return adia.diagram(source)
4343
except adia.BadSyntax as ex:
44-
return f'Error: {ex}'
45-
44+
return f'Syntax Error: {ex}'
45+
except adia.BadAttribute as ex:
46+
return f'Attribute Error: {ex}'
47+
4648
window.adiaDiagram = adia_diagram
4749
</script>
4850

@@ -65,6 +67,6 @@ Let's make and visit the provided javascript demo page:
6567
.. code-block:: bash
6668
6769
cd path/to/adia
68-
make clean serve
70+
make clean webclinic_serve
6971
7072
Now browse the http://localhost:8000/jsdemo.html.

Diff for: webclinic/jsdemo.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@
3333

3434
<script type="text/python">
3535
from browser import window
36-
from adia import diagram, BadSyntax
36+
import adia
3737

3838
def adia_diagram(src):
3939
try:
40-
return diagram(src)
41-
except BadSyntax as ex:
42-
return f'Error: {ex}'
40+
return adia.diagram(src)
41+
except adia.BadSyntax as ex:
42+
return f'Syntax Error: {ex}'
43+
except adia.BadAttribute as ex:
44+
return f'Attribute Error: {ex}'
4345

4446
window.adiaDiagram = adia_diagram
4547
</script>

0 commit comments

Comments
 (0)