diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 4cdacb670c..b20fd4e828 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -25,5 +25,5 @@ jobs: - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.CARGO_TOKEN }} publish_dir: ./docs # Replace with your build output directory diff --git a/docs/generatedocs.sh b/docs/generatedocs.sh index c9bb40e131..9c1eb6bab5 100644 --- a/docs/generatedocs.sh +++ b/docs/generatedocs.sh @@ -43,7 +43,7 @@ for current_dir in ${projects_dirs[@]}; do # Run the command to generate the docs cargo doc --manifest-path "$manifest_path" --target-dir "$target_dir" - path_to_docs=("./packages/$package_name/doc/$underscore_package_name/index.html") + path_to_docs=("packages/$package_name/doc/$underscore_package_name/index.html") # Replace name and description placeholders in the template processed_html=$(echo "$item_html_template" | sed -e "s|name_placeholder|$package_name_and_version|g" -e "s|description_placeholder|$package_description|g" -e "s|package_path_placeholder|$path_to_docs|g")