Skip to content

Commit e4019fa

Browse files
zees-devElaela22soL
authored andcommitted
symlink docs dirs for forc-mcp resources for publish CI (FuelLabs#7406)
## Description This pull request adds a step to the CI workflow to link the `forc-mcp` documentation into the Cargo target directory. This ensures that the documentation is available in the correct location during the build process. Documentation integration: * Added a CI job step in `.github/workflows/ci.yml` to create a symbolic link for the `forc-mcp` documentation from `docs/book/src/forc/plugins/forc_mcp/forc_call_tool` to `target/docs/book/src/forc/plugins/forc_mcp/forc_call_tool`. ## Checklist - [ ] I have linked to any relevant issues. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [ ] I have requested a review from the relevant team or maintainers. Co-authored-by: z <zees-dev@users.noreply.github.com>
1 parent 3b20ae3 commit e4019fa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,14 @@ jobs:
849849
toolchain: ${{ env.RUST_VERSION }}
850850
targets: "x86_64-unknown-linux-gnu, wasm32-unknown-unknown"
851851

852+
- name: Link forc-mcp docs into Cargo target
853+
run: |
854+
set -euo pipefail
855+
DOCS_SRC="${{ github.workspace }}/docs/book/src/forc/plugins/forc_mcp/forc_call_tool"
856+
DOCS_DST="${{ github.workspace }}/target/docs/book/src/forc/plugins/forc_mcp/forc_call_tool"
857+
mkdir -p "$(dirname "$DOCS_DST")"
858+
ln -sfn "$DOCS_SRC" "$DOCS_DST"
859+
852860
- name: Publish crate
853861
uses: FuelLabs/publish-crates@v1
854862
with:

0 commit comments

Comments
 (0)