Skip to content

Commit

Permalink
Deploy docs without tags as well
Browse files Browse the repository at this point in the history
  • Loading branch information
shiro committed Nov 28, 2023
1 parent a44583c commit 6d1f7be
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ jobs:
name: Deploy docs
needs: [linux, build-docs]
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
15 changes: 15 additions & 0 deletions docs/src/content/docs/en/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,19 @@ map2.link([reader, mapper, writer])

# map the "a" key to "b"
mapper.map("a", "b")

# key sequences are also supported
mapper.map("s", "hello world!")


# use the full power of Python using functions
def custom_function(key, state):
print("called custom function")

# custom conditions and complex sequences
if key == "d":
return "{ctrl down}a{ctrl up}"
return True

mapper.map("d", custom_function)
```
2 changes: 1 addition & 1 deletion docs/src/layouts/MainLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const editUrl = `${EDIT_URL}/${currentFile}`
<HeadCommon />
<HeadSEO {...data} canonicalUrl={canonicalURL} />
<title>
{`${data.title} 🚀 ${SITE.title}`}
{`${data.title} | ${SITE.title}`}
</title>
<style>
body {
Expand Down

0 comments on commit 6d1f7be

Please sign in to comment.