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

Build docs in CI #19

Merged
merged 1 commit into from
Nov 1, 2023
Merged

Build docs in CI #19

merged 1 commit into from
Nov 1, 2023

Conversation

LilithHafner
Copy link
Member

@LilithHafner LilithHafner commented Oct 26, 2023

The two commits build everything and fail due to failed doctests due to #8
The remaining commits should fix that failure, fix #8, make CI green, and unblock JuliaLang/julia#51869

@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Merging #19 (b2a567b) into main (a8a25ba) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #19   +/-   ##
=======================================
  Coverage   67.33%   67.33%           
=======================================
  Files           7        7           
  Lines         799      799           
=======================================
  Hits          538      538           
  Misses        261      261           
Files Coverage Δ
src/regioniterator.jl 77.77% <ø> (ø)

@LilithHafner LilithHafner changed the title Build fix building docs in CI Build docs in CI Oct 26, 2023
@LilithHafner
Copy link
Member Author

LilithHafner commented Oct 26, 2023

CI in 3b94cf9 failed for the right reasons!

@LilithHafner LilithHafner marked this pull request as draft October 26, 2023 21:50
@tecosaur
Copy link
Collaborator

Does anything more actually need to happen for this to be ready to merge?

@LilithHafner
Copy link
Member Author

The commits in this PR reflect my actual development process. They are useful for me now in keeping track of what I've done and still need to do and making sense of CI results. There's no need to erase this history, but they should not make it into the main branch's history. I recommend merging this via "squash and merge".

Making documentation reasonably bug-free and checking that all the links work in all the context this documentation appears in is still a big todo, but this makes Docs build and CI green, and does not introduce much hackieness (aside from those hardcoded URLs from 9067fa1) so I think it's ready to go!

@LilithHafner LilithHafner marked this pull request as ready for review November 1, 2023 17:13
@LilithHafner LilithHafner added the documentation Improvements or additions to documentation label Nov 1, 2023
@tecosaur
Copy link
Collaborator

tecosaur commented Nov 1, 2023

Thanks for doing this Lilith! I take it it's good to merge?

@tecosaur
Copy link
Collaborator

tecosaur commented Nov 1, 2023

Update: actually read the last few words of your comment 😅. Thanks again 🙂

@tecosaur
Copy link
Collaborator

tecosaur commented Nov 1, 2023

does not introduce much hackieness (aside from those hardcoded URLs from 9067fa1)

I'm thinking I might just copy the approach of https://github.com/JuliaLang/Distributed.jl/blob/master/docs/make.jl and set:

    checkdocs = :exports,
    warnonly = [:cross_references],

@tecosaur
Copy link
Collaborator

tecosaur commented Nov 1, 2023

I've got a few tweaks I want to try, if they don't pan out I'll just revert to the current state.

@tecosaur tecosaur force-pushed the lh/docs branch 3 times, most recently from d1066d4 to 5c32b23 Compare November 1, 2023 18:25
Before now, documentation build errors would only be caught when testing
manually or PRing a new version of StyledStrings.jl to the main Julia
repo.

To address this, a new CI task is introduced, and a few small changes
made to make automated docs builds possible, namely:
- Tweaking the documentation workflow
- Introducing some docs build scripts under docs/
- Fixing a dodgy jldoctest

We also add a documentation page for the internals.
@tecosaur
Copy link
Collaborator

tecosaur commented Nov 1, 2023

I think this is a little better, let's give it a shot :)

@tecosaur tecosaur merged commit c49ae82 into main Nov 1, 2023
6 checks passed
@tecosaur tecosaur deleted the lh/docs branch November 1, 2023 18:37
@LilithHafner
Copy link
Member Author

You deleted all the history and made multiple force pushes so I can no longer see my history nor get an ergonomic view of what you changed since my latest changes :(

@tecosaur
Copy link
Collaborator

tecosaur commented Nov 2, 2023

Oh the history is still there, it's just detached 🙂 (and GitHub seems to be doing a worse-than-usual job showing it).

Here's a diff from the last commit you pushed to what I merged: https://github.com/JuliaLang/StyledStrings.jl/compare/090c05f92c3e7e..c49ae82f2b1765. Short rundown:

  • More the CI task back into CI.yml
  • Fix the manifest gitignore rule (your change made git pay attention to the root manifest)
  • Condense the docs/make.jl statements (make use of the default values/autodetection more)
  • Change the @ref approach from full URLs to warnonly = [:cross_references]
  • Fix a typo in internals.md
  • Sort the symbols documented in internals.md
  • Pull changes to main

@tecosaur
Copy link
Collaborator

tecosaur commented Nov 2, 2023

Also, looks like the inclusion of Base.{parse,tryparge,merge} here causes issues when building the Julia docs: https://buildkite.com/julialang/julia-master/builds/29596#018b8c30-3982-4a72-838c-a905a5c2d6d2

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

Successfully merging this pull request may close these issues.

Bug in src/regioniterator.jl
2 participants