https://github.com/vtex/action-internal-docs
GitHub Action to automatically publish your documentation to VTEX Tech Docs
https://github.com/vtex/action-internal-docs
Last synced: 5 months ago
JSON representation
GitHub Action to automatically publish your documentation to VTEX Tech Docs
- Host: GitHub
- URL: https://github.com/vtex/action-internal-docs
- Owner: vtex
- License: mit
- Created: 2021-03-04T12:50:56.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-10-13T17:53:08.000Z (over 2 years ago)
- Last Synced: 2025-10-23T09:52:47.011Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.21 MB
- Stars: 1
- Watchers: 36
- Forks: 2
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# VTEX Internal Docs Action
VTEX Internal Docs is an internal documentation solution that enables teams to
collaborate seamlessly by having internal documentation distributed across
multiple repos and rendered in a beautiful documentation portal available for
all VTEX employees that have a github user in the `vtex` organization.
This GitHub Action syncs the documentation on your repository with the main
[Internal Docs repo], which is used to build the Internal Docs website.
If you have any questions, reach out to us at [#tech-docs].
## Benefits
- A single place for all VTEX internal documentation: no more looking for docs
at notion or github wikis, go to a single place and find all your internal
docs needs.
- Find what you need easily: VTEX Internal Docs search works!
- Keep your docs close to your code: no need to open separate Pull requests in
other repos to document your systems.
## Architecture
VTEX Internal Docs is supposed to be used with a github workflow in order to
send data from a github repo to `vtex/internal-docs` repo.
This workflow needs a token with write access to the `vtex/internal-docs` repo.
At any push to branches `main` or `master`, the workflow will grab all
documentation inside `docs/` folder of your repo and will send it to the
subfolder that you define on `docs-product` variable of the workflow.

## How to Use
1. Create a folder called `.github/workflows` in the root of your repo, if it
doesn't already exists.
2. Create a workflow inside your repo, for example `internal-docs.yml`
3. Fill the workflow with the following yml file. Don't forget to change the
`docs-product` variable.
```yml
name: "Internal Docs Integration"
on:
push:
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: vtex/action-internal-docs@main
with:
repo-token: ${{ secrets.INTERNAL_DOCS_GH_TOKEN }}
docs-product: {YOUR_TEAM_NAME_HERE, e.g. Identity, Cloud-Services}
```
4. From now on, every push on branches `master` or `main` will sync your files
in the `docs/` folder to the `vtex/internal-docs` repo and it will be made
available on `https://internal-docs.vtex.com/`
## Contributing
If you want to contribute to this repo, please refer to [CONTRIBUTING.md](./CONTRIBUTING.md)
[#tech-docs]: https://vtex.slack.com/archives/C01U3LVT11B
[Internal Docs repo]: http://github.com/vtex/internal-docs