coreutils
coreutils copied to clipboard
Docs: "Improving the GNU compatibility" section links in Contributing are broken
All links in this page pointing to DEVELOPMENT.html show a 404 page.
https://uutils.github.io/coreutils/docs/contributing.html#improving-the-gnu-compatibility
DEVELOPMENT.html doesn't seem to exist.
I managed to build the documentation locally and it seems to work okay.
$ cargo build --features uudoc
$ target/debug/uudoc
$ cargo install mdbook --locked
$ cd docs
$ mdbook serve --open
I don't see anywhere that the CI builds this so I'm assuming its manually done? The missing files seem to be from target/debug/uudoc not being ran. Can anyone provide some insight here on how the documentation is actually deployed?
I found this section https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#creating-a-custom-github-actions-workflow-to-publish-your-site
It looks like we might require custom steps to build and it would require adminstration setup to make it work successfully.
Okay I might be able to get CI steps to work on my fork for testing purposes, to be continued...
Placing this here for now as a placeholder, I can test this later.
.github/workflows/gh-pages.yml:
name: github pages
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-24.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: 'latest'
- run:
rustup update stable && rustup default stable
cargo install mdbook mdbook-toc --locked
cargo build --release --features "uudoc"
target/release/uudoc
mdbook build docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
Hi
For information, it's:
https://uutils.github.io/coreutils/docs/CONTRIBUTING.html#improving-the-gnu-compatibility and not https://uutils.github.io/coreutils/docs/contributing.html#improving-the-gnu-compatibility
(note the uppercase on the filename)
I'm not sure what changed or when but it seems this is fixed now.
For example, the first link in https://uutils.github.io/coreutils/docs/CONTRIBUTING.html#improving-the-gnu-compatibility goes to https://uutils.github.io/coreutils/docs/DEVELOPMENT.html#gnu-utils-and-prerequisites which seems to be what it's supposed to do.
It was fixed in https://github.com/uutils/coreutils/commit/89d79753b12cdda47cc85006c1f7396a397e3296
Before https://github.com/uutils/coreutils/commit/89d79753b12cdda47cc85006c1f7396a397e3296
https://uutils.github.io/coreutils/docs/contributing.html was used (lowercase)
and
DEVELOPMENT.html didn't exist
After https://github.com/uutils/coreutils/commit/89d79753b12cdda47cc85006c1f7396a397e3296
https://uutils.github.io/coreutils/docs/CONTRIBUTING.html was used (uppercase)
and
DEVELOPMENT.html exists