docs/_README.md
The intent behind this README is to answer contributor questions regarding docs.dagger.io.
The documentation website (source code, assets and content) live in the /docs directory.
Within this directory, the content is separated into:
/current_docs: the current docs shown on docs.dagger.io/versioned_docs: the next version(s) of the docs, if available/archived_docs: the site template for the docs archive. Related instructions are in ARCHIVING.mdIt gets automatically deployed to devel.docs.dagger.io.
You can use this staging website to test the documentation, including:
The doc URL will use the slug property from the doc markdown metadata. Given
slug: /1001/install/, the live URL will be devel.docs.dagger.io/1001/install
It must be manually deployed to docs.dagger.io. Only a certain group of people can deploy via Netlify. For those with permission, follow these steps:
[!NOTE]
There have been cases where Netlify builds have failed with errors, but the same build succeeds when performed locally. In the past, one reason for this has been Netlify's use of a stale cache. In case you encounter this error, click "Options -> Clear cache and retry with latest branch commit" to recreate the deployment with a clean cache.
You will need to have yarn and Node.js v18 installed.
From the /docs directory, run the following command: yarn install && yarn start
This will install all dependencies, start the docs web server locally and open localhost:3000 in your browser.
# test PR 7422
dagger call -m github.com/dagger/dagger/docs@pull/7422/head docs server as-service up
## get markdown lint report for PR 7422
dagger call -m github.com/dagger/dagger/linters/markdown \
lint --source https://github.com/dagger/dagger#pull/7422/head \
json