Skip to content

chore: Add docfx configuration for generating API documentation#28

Merged
kou merged 13 commits intoapache:mainfrom
adamreeve:docfx
Sep 1, 2025
Merged

chore: Add docfx configuration for generating API documentation#28
kou merged 13 commits intoapache:mainfrom
adamreeve:docfx

Conversation

@adamreeve
Copy link
Copy Markdown
Contributor

@adamreeve adamreeve commented Aug 27, 2025

What's Changed

  • Adds docfx configuration for API docs
  • Copied README into docs/index.md to use as the landing page for the docs. I've removed dev/build related docs and added links into the API reference pages
  • Adds CI job to test documentation building

To generate and view the docs:

./ci/scripts/docs.sh $(pwd)
docfx serve docs/_site

Closes #27.

Copy link
Copy Markdown
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

Could you add a CI job that runs docf to https://github.com/apache/arrow-dotnet/blob/main/.github/workflows/test.yaml ?
I hope that it finds documentation failures.

Comment thread docs/index.md
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this a copy of the top-level RAEDME.md?

Can we refer this from the top-level README.md instead of having duplicated contents?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It isn't a full copy, I removed some parts related to building and development to keep this more user focused.

I think once there is a live documentation website, we should remove the duplicated parts and put a link to the documentation in the README.

Comment thread dev/release/rat_exclude_files.txt Outdated
*.sln
.github/pull_request_template.md
src/Apache.Arrow/Flatbuf/*
docs/images/*
Copy link
Copy Markdown
Contributor Author

@adamreeve adamreeve Aug 27, 2025

Choose a reason for hiding this comment

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

I'm not sure what the rules are on which files can be excluded, but it seems unnecessary to have the licence header in an SVG?

Also, I should mention that favicon.svg was not created by me, I downloaded it from https://arrow.apache.org/visual_identity/ and just modified the height and width to fit in the header. Does this need to be documented anywhere?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure what the rules are on which files can be excluded, but it seems unnecessary to have the licence header in an SVG?

Yes.

Also, I should mention that favicon.svg was not created by me, I downloaded it from https://arrow.apache.org/visual_identity/ and just modified the height and width to fit in the header. Does this need to be documented anywhere?

It's not required by our logo guideline but could you add docs/images/README.md and add this note to the file for future changes? Can we exclude docs/images/README.md from the docfx targets?

Just to confirm, your size change doesn't violate the "Please don't visually distort the logos" part in https://arrow.apache.org/visual_identity/#using-the-logo , right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No it doesn't, I reduced the height to fit the header but have kept the aspect ratio the same.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

With the docs website open beside the Arrow website, I noticed the icons looked a bit different, so I've now copied the icon from arrow-site to use as the favicon and mentioned this in the README too.

Copy link
Copy Markdown
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

Comment thread dev/release/rat_exclude_files.txt Outdated
*.sln
.github/pull_request_template.md
src/Apache.Arrow/Flatbuf/*
docs/images/*
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure what the rules are on which files can be excluded, but it seems unnecessary to have the licence header in an SVG?

Yes.

Also, I should mention that favicon.svg was not created by me, I downloaded it from https://arrow.apache.org/visual_identity/ and just modified the height and width to fit in the header. Does this need to be documented anywhere?

It's not required by our logo guideline but could you add docs/images/README.md and add this note to the file for future changes? Can we exclude docs/images/README.md from the docfx targets?

Just to confirm, your size change doesn't violate the "Please don't visually distort the logos" part in https://arrow.apache.org/visual_identity/#using-the-logo , right?

Comment thread docs/docfx.json Outdated
Comment thread .github/workflows/test.yaml Outdated
Comment thread dev/release/rat_exclude_files.txt Outdated
Comment thread docs/images/README.md
Comment thread docs/index.md Outdated
Comment thread docs/index.md Outdated
Comment thread docs/index.md Outdated
Comment thread docs/index.md Outdated
adamreeve and others added 2 commits September 1, 2025 12:12
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
@kou kou merged commit 9f6e823 into apache:main Sep 1, 2025
8 of 10 checks passed
@adamreeve adamreeve deleted the docfx branch September 1, 2025 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for docfx

2 participants