Skip to content

ci: check docs links #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ jobs:
- name: Commit linting
uses: wagoid/commitlint-github-action@v2

# - name: Code linting
# run: npm run lint:check
# env:
# CI: true

- name: Build
run: npm run build

- name: URL validation
run: |
npm install auhau/link-checker
mkdir /tmp/link-checker
npx link-checker --url-ignore localhost --allow-hash-href --mkdocs --http-cache /tmp/link-checker --http-always-get --http-timeout 10000 --http-redirects 5 ./build

2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Build for gh-pages
run: |
npm install
npm ci
npm run-script build
echo "bee-js.ethswarm.org" > ./build/CNAME
rm ./build/.nojekyll
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/create-dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,4 +419,4 @@ yarn build
</TabItem>
</Tabs>

This will create a `dist` folder that should be uploaded to the Swarm. We are working on `swarm-cli` which will make the upload process easier, but in the mean time you can follow the [Host Your Website on Swarm tutorial in the bee docs](https://docs.ethswarm.org/docs/getting-started/host-your-website-using-ens).
This will create a `dist` folder that should be uploaded to the Swarm. We are working on `swarm-cli` which will make the upload process easier, but in the mean time you can follow the [Host Your Website on Swarm tutorial in the bee docs](https://docs.ethswarm.org/docs/access-the-swarm/host-your-website).
1 change: 1 addition & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
// note! we use SED to change this during automated builds, see ./.github/workflows/gh-pages.yml
url: 'https://bee-js.ethswarm.org',
baseUrl: '/',
trailingSlash: true,
plugins: [
require.resolve('docusaurus-lunr-search'),
// [
Expand Down
Loading