Skip to content

Commit

Permalink
Revert "chore(website): improved api docs (asyncapi#1421)"
Browse files Browse the repository at this point in the history
This reverts commit b0f8839.
  • Loading branch information
jonaslagoni committed Jun 26, 2023
1 parent b0f8839 commit e4ea371
Show file tree
Hide file tree
Showing 19 changed files with 1,644 additions and 4,914 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ lib
output
# Where the runtime testing for Java places node modules
java_runtime_node
*.log

# API documentation
modelina-website/public/docs/api/generated
*.log
1,538 changes: 1,538 additions & 0 deletions API.md

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
- [Interpretation of JSON Schema](#interpretation-of-json-schema)
- [Migration](#migration)
- [Coming from other tools](#coming-from-other-tools)
- [API Documentation](#api-documentation)
- [Languages](#languages)

<!-- tocstop -->
Expand Down Expand Up @@ -57,10 +56,6 @@ As time goes on, major versions are inevitable and expected! You can find the mi
### [Coming from other tools](./other-tools.md)
Contains specific information about the differences between a lot of other common model generation tools.

### [API Documentation](https://modelina.org/docs/api)

No one wants to read the code to find information about it, instead use the [/docs/api](https://modelina.org/docs/api) page on the website to find what you are looking for!

### Languages
Each language has its own limitations, corner cases, and features; thus, each language has separate documentation.
- [C#](./languages/Csharp.md)
Expand Down
2 changes: 1 addition & 1 deletion modelina-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"dev": "npm run build:examples && cross-env NODE_OPTIONS='--inspect' next dev",
"build": "npm run build:examples && next build --no-lint",
"build:modelina": "cd .. && npm i && npm run build:prod && npm run docs:api",
"build:modelina": "cd .. && npm i && npm run build:prod",
"export": "next export",
"start": "next start",
"lint": "next lint -c ./.eslintrc",
Expand Down
2 changes: 1 addition & 1 deletion modelina-website/src/components/layouts/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Heading from '../typography/Heading';

export default function Footer() {
return (
<footer className="bg-dark margin: 0 auto">
<footer className="bg-dark mt-12 margin: 0 auto">
<div className="max-w-screen-xl mx-auto py-4 sm:py-6 md:py-12 xl:py-16 px-3 overflow-hidden sm:px-6 lg:px-8 divide-y divide-cool-gray">
<nav className="py-4 sm:py-10 flex flex-wrap justify-between">
<div className="mr-14 w-full md:w-auto">
Expand Down
10 changes: 4 additions & 6 deletions modelina-website/src/components/layouts/GenericLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ export default function GenericLayout({
image = '/img/social/modelina-card.jpg',
children,
wide = true,
full = false,
padding,
footerPadding = 'mb-12'
full = false
}: any) {
if (!title || !description) {
throw new Error(
Expand All @@ -20,12 +18,12 @@ export default function GenericLayout({
}

return (
<div className={footerPadding}>
<>
<Head title={title} description={description} image={image} />
<StickyNavbar>
<NavBar className="max-w-screen-xl block px-4 sm:px-6 lg:px-8 mx-auto" />
</StickyNavbar>
<Container wide={wide} full={full} padding={padding}>{children}</Container>
</div>
<Container wide={wide} full={full}>{children}</Container>
</>
);
}
4 changes: 0 additions & 4 deletions modelina-website/src/components/layouts/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ export default function NavBar({ className = '', hideLogo = false }) {
<NavItem text="Playground" href="/playground" />
</div>

<div className="relative" onMouseLeave={() => showMenu(false)}>
<NavItem text="API docs" href="/docs/api" />
</div>

<div className="flex flex-row items-center justify-content">
<GithubButton
text="Star on GitHub"
Expand Down
26 changes: 0 additions & 26 deletions modelina-website/src/pages/docs/api.tsx

This file was deleted.

Loading

0 comments on commit e4ea371

Please sign in to comment.