Skip to content
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

docs: segregate api docs url/deployment #3602

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

nedsalk
Copy link
Contributor

@nedsalk nedsalk commented Jan 21, 2025

Summary

This PR contains the implementation detailed in #3572 (comment).

Once this PR is merged, we should disable the automatic triggering of the docs-api production environment as it'll be reserved for the release workflow to trigger. The nightly environment is being updated on every merge.

Note

When testing out the docs preview of this PR to see if the API is linked properly, opens up a new tab, etc, it might not open up a new tab. Please clear the browser cache and try clicking on the links again.


The related docs-hub PR is

and should be merged before this one to verify that everything works.

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

@nedsalk nedsalk added the docs Requests pertinent to documentation label Jan 21, 2025
@nedsalk nedsalk self-assigned this Jan 21, 2025
Copy link

vercel bot commented Jan 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fuels-template ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 8:27am
ts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 8:27am
ts-docs-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 8:27am

Copy link
Contributor

Coverage Report:

Lines Branches Functions Statements
77.09%(+0.05%) 70.71%(+0.07%) 75.17%(+0.07%) 77.08%(+0.04%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
🔴 packages/account/src/providers/provider.ts 68.52%
(-0.03%)
58.91%
(+0.45%)
70.21%
(+0.32%)
68.26%
(-0.02%)
🔴 packages/account/src/providers/generated/operations.ts 94.11%
(+0.08%)
100%
(+0%)
82%
(+0.37%)
94.57%
(+0.06%)
🔴 packages/account/src/providers/transaction-request/transaction-request.ts 88.57%
(+0%)
76.71%
(-1.37%)
84%
(+0%)
88.81%
(+0%)
🔴 packages/address/src/address.ts 90.69%
(-0.21%)
92.85%
(+6.19%)
85.71%
(+0%)
90.9%
(-0.17%)
🔴 packages/address/src/utils.ts 80.95%
(+11.72%)
68.75%
(+18.75%)
83.33%
(+5.56%)
81.39%
(+11.02%)
🔴 packages/math/src/bn.ts 89.81%
(+0.19%)
87.5%
(+0.66%)
83.33%
(+0%)
89.81%
(+0.19%)

VERCEL_PROJECT_ID: ${{ secrets.VERCEL_TS_DOCS_API_PROJECT_ID }}
run: |
pnpm install --global vercel@latest
vercel --prod --token=${{ secrets.VERCEL_TOKEN }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arboleya we'll need to add all these secrets to the repo. When we get to supporting multiple LTS versions and all that, this same idea would remain, maybe just modified a bit (or maybe not, depending on how we implement it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Requests pertinent to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segregate API docs url/deployment
1 participant