-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Website: Start populating some content (#2539)
<img width="2178" alt="image" src="https://github.com/microsoft/typespec/assets/1031227/ced234e9-1ab0-4984-8c7f-3c517ee0a0fd"> ## Openapi/rest <img width="1491" alt="image" src="https://github.com/microsoft/typespec/assets/1031227/d56f1fe9-d6de-4e8d-bd3c-531a28d2cf1c"> ## Json schema <img width="1364" alt="image" src="https://github.com/microsoft/typespec/assets/1031227/44f5b440-d762-44dd-b93e-143dfec4dc7f">
- Loading branch information
1 parent
7454599
commit 4385da0
Showing
55 changed files
with
704 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ words: | |
- openapi | ||
- openapiv | ||
- picocolors | ||
- prismjs | ||
- proto | ||
- protobuf | ||
- protoc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
declare module "*.png"; | ||
declare module "!!raw-loader!@site/static/*" { | ||
const contents: string; | ||
export = contents; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/website/src/components/asset-img/asset-img.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.img { | ||
display: block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import useBaseUrl from "@docusaurus/useBaseUrl"; | ||
import style from "./asset-img.module.css"; | ||
|
||
export interface AssetImgProps { | ||
src: string; | ||
className?: string; | ||
} | ||
|
||
/** | ||
* Component for rendering an image resolving the relative path. | ||
*/ | ||
export const AssetImg = ({ src, ...props }: AssetImgProps) => { | ||
const fullSrc = useBaseUrl(`/img/${src}`); | ||
return <img className={style["img"]} src={fullSrc} {...props} />; | ||
}; |
3 changes: 3 additions & 0 deletions
3
packages/website/src/components/code-block/code-block.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.code-block { | ||
margin: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import CodeBlockDocusaurus, { Props } from "@theme/CodeBlock"; | ||
import style from "./code-block.module.css"; | ||
|
||
export interface CodeBlockProps extends Props {} | ||
export const CodeBlock = (props: CodeBlockProps) => { | ||
return <CodeBlockDocusaurus {...props} className={style["code-block"]} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.