Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 14d2c7c

Browse files
committedJan 23, 2025·
docs: Add gh action to deploy docs
1 parent b2ae2cc commit 14d2c7c

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed
 

‎.github/workflows/docs.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches:
6+
- feat/web-docs
7+
paths:
8+
- docs/**
9+
10+
jobs:
11+
docgen:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
token: ${{ secrets.GH_TOKEN }}
17+
- name: Push docs to nvim-orgmode.github.io repo
18+
uses: nkoppel/push-files-to-another-repository@v1.1.4
19+
env:
20+
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }}
21+
with:
22+
source-files: 'docs/'
23+
destination-username: 'nvim-orgmode'
24+
destination-repository: 'nvim-orgmode.github.io'
25+
destination-branch: 'feat/vitepress'
26+
commit-email: 'github-actions@github.com'

‎docs/index.org

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ It aims to be a feature-complete implementation of Orgmode features in Neovim.
55

66
💡 TIP: To view this documentation offline in Neovim, run =:Org help=. More info in [[#globals-and-commands][Globals and commands]] section.
77

8-
98
** Quick start
109
:PROPERTIES:
1110
:CUSTOM_ID: quick-start
@@ -46,7 +45,7 @@ that demonstrates how the similar Orgmode clone [[https://github.com/dhruvasagar
4645
:PROPERTIES:
4746
:CUSTOM_ID: api-docs
4847
:END:
49-
Nvim-orgmode exoses a Lua API that can be used to interact with the orgmode. To view it, check [[file:../docs/orgmode-api.txt][orgmode-api.txt]]
48+
Nvim-orgmode exposes a Lua API that can be used to interact with the orgmode. To view it, check [[file:../docs/orgmode-api.txt][orgmode-api.txt]]
5049
or do =:h OrgApi= in Neovim.
5150

5251
** Globals and commands

0 commit comments

Comments
 (0)
Please sign in to comment.