Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ryan Peters
    @sloshy
    @ChristopherDavenport I'll take a look in a bit; which repo is this for?
    I built agitation locally to test it w/ the light theme and it seemed to work on my machine
    Christopher Davenport
    @ChristopherDavenport
    This was a private repo. But everything is there is the same as what's on mapref which publishes correctly. I'm perplexed.
    Ryan Peters
    @sloshy
    @ChristopherDavenport what are your exact settings? Are you specifying a microsite theme? It's possible that some weird combination of options is causing this
    Jack Koenig
    @jackkoenig
    I have lots of version of my API docs (~60) that I host with my microsite. It works okay, but both the run of microsites and a jekyll run to serve locally take ages (like 15 minutes) just processing all of this content. Is there an obvious way I could just like, inject the API docs at the end so they get posted along with my jekyll site in my github pages? Does this make sense?
    I can't just link to javadoc.io unfortunately because I use unidoc and I really need the API docs together and not split up by build unit as they are on javadoc.io
    I'm currently copying the API docs into docs/target/site/api (where docs is my microsite project directory) and pointing to them with micrositeStaticDirectory
    Eric Peters
    @er1c
    site/publishMicrosite doesn't seem to work locally for me using GitHub4s but if I remove micrositePushSiteWith := GitHub4s, it works - any thoughts? It just timesout during the pushMicrosite stage
    Eric Peters
    @er1c
    if I add ```
            "org.http4s"        %% "http4s-blaze-client" % "0.21.19",
            "com.47deg"         %% "github4s"            % "0.28.2",
    I get this error:
    Error making request to GitHub
        at microsites.github.GitHubOps.$anonfun$run$1(GitHubOps.scala:208)
        at uncancelable @ org.http4s.client.ConnectionManager$.pool(ConnectionManager.scala:83)
        at uncancelable @ org.http4s.client.ConnectionManager$.pool(ConnectionManager.scala:83)
        at flatMap @ org.http4s.client.PoolManager.releaseRecyclable(PoolManager.scala:225)
      | => sat uncancelable @ org.http4s.client.ConnectionManager$.pool(ConnectionManager.scala:83)
        at unsafeRunSync @ microsites.MicrositeAutoImportSettings.$anonfun$micrositeTasksSettings$14(MicrositeKeys.scala:496)
        at withPermit @ org.http4s.client.PoolManager.shutdown(PoolManager.scala:370)
        at uncancelable @ org.http4s.client.ConnectionManager$.pool(ConnectionManager.scala:83)
        at withPermit @ org.http4s.client.PoolManager.shutdown(PoolManager.scala:370)
        at guarantee$extension @ org.http4s.client.blaze.Http1Connection.$anonfun$executeRequest$2(Http1Connection.scala:193)
        at map @ fs2.internal.CompileScope.$anonfun$close$9(CompileScope.scala:246)
    Caused by: JsonParsingError(Invalid message body: Could not decode JSON: {
      "message" : "Invalid tree info",
      "documentation_url" : "https://docs.github.com/rest/reference/git#create-a-tree"
    }, Some(DecodingFailure(Attempt to decode value on failed cursor, List(DownField(errors)))))
    Caused by: DecodingFailure(Attempt to decode value on failed cursor, List(DownField(errors)))
    Eric Peters
    @er1c
    oh perhaps because my source tree had changes
    Eric Peters
    @er1c
    https://github.com/er1c/caliban-github-api-client/actions/runs/664791585 is an example job that just times out - if anyone would be kind enough to look for issues in my usage
    Ryan Peters
    @sloshy
    @er1c I'll be happy to take a look some time today once I have a free moment
    Feel free to remind me if I don't get around to it, have a lot on my plate right now but I can squeeze a glance in
    Eric Peters
    @er1c
    @sloshy thanks @sloshy great last name btw
    Ryan Peters
    @sloshy
    Oh yeah it's the best
    Haha
    Eric Peters
    @er1c
    my dog's name is Parker Peters
    Ryan Peters
    @sloshy
    Hilarious
    I'm not quite that clever so all of my pets are named after sweets (+ "Gizmo" but he came that way and I didn't feel like changing it as he was used to it)
    Eric Peters
    @er1c
    hehe, if you make it to the Seattle 47 degrees office, I'd be happy to go out for :beers: after we are all vacinated ;)
    Ryan Peters
    @sloshy
    One of these days, god willing. Just need my vaccine and everyone else theirs.
    Eric Peters
    @er1c
    @sloshy hihi :)
    Ryan Peters
    @sloshy
    Oh hey fancy you reminding me to look at this again @er1c
    Does it still time out or do you get an error?
    Ryan Peters
    @sloshy
    @er1c does it work if you remove micrositePushSiteWith := GitHub4s,
    Oh, do you have a ghpages branch
    ah ok I see you do
    Ok, a couple things: first I notice that your YAML for github uses the wrong ruby setup action
    They deprecated it recently (or meant to) and you're supposed to use ruby/setup-ruby instead of actions/setup-ruby
    You can also set the ruby version to 2.7 and it will infer that you mean any patch version is OK
    Ryan Peters
    @sloshy
    Second, this probably won't help too much but I configured my own site recently as well within the past month or so. You can compare what I have here with yours assuming I can't figure it out first: https://github.com/sloshy/fs2-es/blob/1460bb47b8a9e4efbc54147c0a0bed6e72a43e21/build.sbt#L58
    Ryan Peters
    @sloshy
    From the looks of it (unless I'm reading the logs wrong) it got to the part where it tried pushing to github. Not sure why that would timeout unless the issue is on github's end
    Eric Peters
    @er1c
    @sloshy it works if I remove the GitHub4s and use the other plugin. when I was debugging microsites locally it stops on this line: https://github.com/47degrees/sbt-microsites/blob/81be4be71516706005d7dbe9df5a15b938c08857/src/main/scala/microsites/MicrositeKeys.scala#L502 never get to a success, error, or what not
    Ryan Peters
    @sloshy
    @er1c Hi Eric, I haven't forgotten you. I'm trying to see if I can pull somebody else in to help because I'm a bit stumped. At the moment the best advice I can give you is to double check your parameters for everything and your repository access
    Do let us know if you figure it out but I'll keep trying to see if anybody is free to take a look.
    Eric Peters
    @er1c
    @sloshy I'll try with a new API token and see if that's different, thanks!
    Eric Peters
    @er1c
    @sloshy I tried a new GITHUB_TOKEN with all permissions, still hangs, the commit never finishes
    Eric Peters
    @er1c
    Error making request to GitHub
      | => sat microsites.github.GitHubOps.$anonfun$run$1(GitHubOps.scala:208)
        at uncancelable @ org.http4s.client.ConnectionManager$.pool(ConnectionManager.scala:83)
        at uncancelable @ org.http4s.client.ConnectionManager$.pool(ConnectionManager.scala:83)
        at flatMap @ org.http4s.client.PoolManager.releaseRecyclable(PoolManager.scala:225)
        at uncancelable @ org.http4s.client.ConnectionManager$.pool(ConnectionManager.scala:83)
        at unsafeRunSync @ microsites.MicrositeAutoImportSettings.$anonfun$micrositeTasksSettings$14(MicrositeKeys.scala:496)
        at withPermit @ org.http4s.client.PoolManager.shutdown(PoolManager.scala:370)
        at uncancelable @ org.http4s.client.ConnectionManager$.pool(ConnectionManager.scala:83)
        at withPermit @ org.http4s.client.PoolManager.shutdown(PoolManager.scala:370)
        at guarantee$extension @ org.http4s.client.blaze.Http1Connection.$anonfun$executeRequest$2(Http1Connection.scala:193)
        at map @ fs2.internal.CompileScope.$anonfun$close$9(CompileScope.scala:246)
    Caused by: UnhandledResponseError(Unhandled status code 502, {
      "message": "Server Error"
    }
    Ryan Peters
    @sloshy
    Huh... 500-level status code. That sounds almost like something you should elevate to github itself at this point
    Weird how it seems to be giving you so much trouble. Can you get it working with a different repository maybe? Or a fork?
    Jack Koenig
    @jackkoenig:matrix.org
    [m]
    Has anyone used table of contents generation with sbt-microsites? I briefly tried https://github.com/toshimaru/jekyll-toc but didn't manage to get it to work on my microsite
    Ryan Peters
    @sloshy
    @jackkoenig:matrix.org Hi! While I have not used that plugin, it looks like it requires you to modify the contents of the layout you are using. In sbt-microsites, layouts are generated in the code based on your configuration settings. Here's an example of some code which contains the {{ content }} text that the plugin requires you to change https://github.com/47degrees/sbt-microsites/blob/6fd0ac6bde9187d3aee56e3e45e8b4064960d612/src/main/scala/microsites/layouts/PageLayout.scala#L109
    So, I think for this, we might need a feature to modify some of the details of these layouts
    I'll add an issue on GitHub for you to track this. Do you have a github username you want me to tag in the issue for tracking it?
    Jack Koenig
    @jackkoenig:matrix.org
    [m]
    Thanks for the detailed response @sloshy ! I'm https://github.com/jackkoenig on Github. Thanks :)
    Ryan Peters
    @sloshy
    Awesome, I'll tag you and see if I can get around to this in the next several days
    Jack Koenig
    @jackkoenig
    Has anyone done broken link checking with sbt-microsites?