Skip to content

Commit

Permalink
feat: format api doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Feb 7, 2024
1 parent 0f983fc commit ae99fea
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 8 deletions.
2 changes: 1 addition & 1 deletion prophecies/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
}

SPECTACULAR_SETTINGS = {
"TITLE": "Prophecies API",
"TITLE": "Prophecies",
"DESCRIPTION": """Prophecies is a platform to fact check data collaboratively.
It is a free open-source software developed by the International Consortium of Investigative Journalists (ICIJ).
""",
Expand Down
22 changes: 15 additions & 7 deletions prophecies/static/docs/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Prophecies API</title>
<title>API - Prophecies</title>
<link rel="preconnect" href="https://unpkg.com">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand All @@ -17,22 +17,30 @@
--font-mono: "SF Mono",ui-monospace,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
--font-code: var(--font-mono);

--color-canvas-100: #E9EFEE;
--color-canvas-200: #fff;
--color-primary-tint: #98BFBE;

--color-canvas-100: #e9efee;
--color-canvas-200: rgba(255, 255, 255, 0.4);
--color-border: rgb(227, 232, 237);
--color-primary: #235B59;
--color-primary-tint: rgba(255, 255, 255, 0.8);
--color-success: #73B782;
--color-danger: #FE6565;
--color-warning: #e49c00;
}

:root .sl-inverted, [data-theme="light"] .sl-inverted, [data-theme="light"] .sl-inverted .sl-inverted .sl-inverted {
:root .sl-inverted,
[data-theme="light"] .sl-inverted,
[data-theme="light"] .sl-inverted .sl-inverted .sl-inverted {
--color-canvas: #142b2a;
}
</style>
</head>
<body>
<elements-api apiDescriptionUrl="./openapi.yml" router="hash" layout="responsive" hideTryIt="true" />
<elements-api
apiDescriptionUrl="./openapi.yml"
logo="./logo.svg"
router="hash"
layout="responsive"
hideTryIt="true" />
</body>
</html>
Binary file added prophecies/static/docs/favicon.ico
Binary file not shown.
88 changes: 88 additions & 0 deletions prophecies/static/docs/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ae99fea

Please sign in to comment.