Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
update for typst 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slashformotion committed Oct 21, 2023
1 parent 25c6739 commit b7ec64a
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ docker run -p 8000:8000 typst_image
Send `test.typ` to the api and output the file to `result.pdf`:

```shell
curl -H "Content-Type:text/plain" --data-binary @test.typ http://localhost:5000 --output result.pdf
curl -H "Content-Type:text/plain" --data-binary @test.typ http://localhost:8000 --output result.pdf
```

Or more simply using [httpie](https://httpie.io/cli):
Expand Down
40 changes: 40 additions & 0 deletions tbump.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Uncomment this if your project is hosted on GitHub:
# github_url = "https://github.com/<user or organization>/<project>/"

[version]
current = "v0.0.0"

# Example of a semver regexp.
# Make sure this matches current_version before
# using tbump
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
'''

[git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"

# For each file to patch, add a [[file]] config
# section containing the path of the file, relative to the
# tbump.toml location.
[[file]]
src = "..."

# You can specify a list of commands to
# run after the files have been patched
# and before the git commit is made

# [[before_commit]]
# name = "check changelog"
# cmd = "grep -q {new_version} Changelog.rst"

# Or run some commands after the git tag and the branch
# have been pushed:
# [[after_push]]
# name = "publish"
# cmd = "./publish.sh"
2 changes: 1 addition & 1 deletion typst-http-api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ def build():


if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)
app.run(host="0.0.0.0", port=8000)
2 changes: 1 addition & 1 deletion typst-http-api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
typst==0.3.0
typst==0.8.0
flask==2.3.2
gunicorn

0 comments on commit b7ec64a

Please sign in to comment.