Skip to content

Commit

Permalink
Docs/commits from Jakub (#1021)
Browse files Browse the repository at this point in the history
* add opengraph meta tag per SCOPE-29

* break long lists into columns in schema reference per SCOPE-28

Co-authored-by: Abe Raher <abe@cribl.io>
  • Loading branch information
abetones and Abe Raher authored Jul 5, 2022
1 parent d954b77 commit ae23c85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/docs/schema2md.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function parseProperties({ name, properties = {}, required = [], baseProps = fal
];
if (value.enum) {
description.push(
'**Possible values:**<ul>' + value.enum.map(v => `<li>\`${v}\`</li>`).join('') + '</ul>'
`**Possible values:**<ul style="column-count: ${Math.ceil(value.enum.length / 20)};">${value.enum.map(v => `<li>\`${v}\`</li>`).join('')}</ul>`
);
}
if (value.const) {
Expand Down
4 changes: 4 additions & 0 deletions website/src/components/layouts/documentationLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ import { Container, Row, Col } from "react-bootstrap";
import DocsNav from "../DocsNav";
import Header from "../Header";
import MobileHeader from "../MobileHeader";
import { Helmet } from "react-helmet";

import "../../scss/_documentation.scss";
import Footer from "../Footer";
export default function Layout({ children }) {
return (
<>
<Helmet>
<meta name="og:image" content={'https://cribl.io/wp-content/uploads/2022/01/thumb.appScope.fullColorWhiteAlt.png'} />
</Helmet>
<div className="display-xs">
<MobileHeader />
</div>
Expand Down

0 comments on commit ae23c85

Please sign in to comment.