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

Added a external showcase https://bestsolution-at.github.io/openapi-dsl/ #207

Merged
merged 3 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions hugo/content/showcase/openapi.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: "OpenAPI SL"
weight: 0
type: langium
layout: showcase-page
externalUrl: "https://bestsolution-at.github.io/openapi-dsl/"
img: "/assets/BestSolution_OpenAPI.svg"
emilkrebs marked this conversation as resolved.
Show resolved Hide resolved
description: A proof-of-concept DSL to describe OpenAPI-Documents in a concise and human readable way. Made by BestSolution.
geekdochidden: true
draft: false
noMain: true
---
12 changes: 11 additions & 1 deletion hugo/layouts/langium/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@
<div class="flex flex-wrap gap-10 justify-center mt-5 mx-5 ">
{{range where .Pages.ByWeight ".Params.draft" false}}
<div class="rounded-lg border shadow-md bg-gray-800 border-gray-600 w-[300px] overflow-hidden self-stretch text-white">
{{ if .Params.url }}
<a href="{{.Params.url}}" class="self-stretch">
{{ else if .Params.externalUrl }}
<a href="{{.Params.externalUrl}}" onclick="return confirm('You will be redirected to a external website: \n{{.Params.externalUrl}}\n\nAre you sure you want to continue?')" target="_blank" class="self-stretch">
emilkrebs marked this conversation as resolved.
Show resolved Hide resolved
{{ end }}
<img src="{{.Params.img}}" class="object-fill min-h-[300px]"/>
<h2 class="text-center text-xl mt-10 mb-5">{{.Title}}</h2>
<h2 class="text-center text-xl mt-10 mb-5">
{{.Title}}
{{ if .Params.externalUrl }}
<img src="/assets/external_link.svg" class="inline-block h-4 w-4 mb-2"/>
emilkrebs marked this conversation as resolved.
Show resolved Hide resolved
{{ end }}

</h2>
<p class="line-clamp-[8] px-5 mb-10 text-sm">
{{.Params.description}}
</p>
Expand Down
Loading