Skip to content

Commit

Permalink
Support docusaurus (#136)
Browse files Browse the repository at this point in the history
* Replace {% stuff with Docusaurus stuff

* Saving fixes

* More docusaurus fixes

* Fix link

* Fix core recipe generation

* Fix vars + options

* Fix assertj issues

* Remove auto-generated github pages

Don't see a point for this anymore - and it would be a decent
amount of work to get it working again. We can easily start up
a docusaurus server locally with the changes if we want to see them.

* Make recipes with data tables look better

* Handle more bad recipe names

* Handle C# better

* Fix labeling

I was using title= instead of label= which made capitalization wrong.
I also didn't follow the pattern of fooBar and instead was doing foo-bar.
Both have been fixed

* More style fixes

* Fix recipes with data tables

* Handle HTML better + fix datatables further

* Really fix datatables hopefully

* Handle AI data tables

---------

Co-authored-by: Mike Solomon <mike-solomon@users.noreply.github.com>
  • Loading branch information
mike-solomon and mike-solomon authored Oct 8, 2024
1 parent 3e905cc commit a752b6e
Show file tree
Hide file tree
Showing 3 changed files with 303 additions and 294 deletions.
58 changes: 0 additions & 58 deletions .github/workflows/pages.yml

This file was deleted.

10 changes: 5 additions & 5 deletions src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import org.openrewrite.config.RecipeDescriptor
fun RecipeDescriptor.asYaml(): String {
val s = StringBuilder()
s.appendLine("""
---
type: specs.openrewrite.org/v1beta/recipe
name: $name
displayName: $displayName
description: $description
---
type: specs.openrewrite.org/v1beta/recipe
name: $name
displayName: $displayName
description: ${description?.replace("\n", "") ?: ""}
""".trimIndent())
if (tags.isNotEmpty()) {
s.appendLine("tags:")
Expand Down
Loading

0 comments on commit a752b6e

Please sign in to comment.