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

docs: cleanse font family #1714

Merged
merged 5 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build:
- scripts/check-docs-label.sh
pre_build:
# Auto-generate REST API reference
- PYTHONPATH="src" python -m ai.backend.manager.openapi docs/manager/rest-reference/openapi.json
- PYTHONPATH="src" python -m ai.backend.manager.openapi -o docs/manager/rest-reference/openapi.json
python:
install:
- requirements: requirements.txt
Expand Down
1 change: 1 addition & 0 deletions changes/1714.doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change fonts to webfonts and erase local font files.
48 changes: 6 additions & 42 deletions docs/_static/css/customTheme.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

/* --Reset CSS Start-- */
html, body, div, span,
h1, h2, h3, h4, h5, h6,
Expand Down Expand Up @@ -25,44 +27,6 @@ ol, ul {
font-weight: 400;
unicode-range: U+0041-005A, U+0061-007A, U+AC00-D7A3, U+0030-0039, U+0020-002F, U+003A-0040, U+005B-0060, U+007B-007E
}

/* 보조 폰트 */
@font-face {
font-family: ABCWhyteInktrap;
src: url('./fonts/ABCWhyteInktrap-Regular.woff') format('woff');
font-weight: 400;
unicode-range: U+0041-005A, U+0061-007A, U+0030-0039;
}

@font-face {
font-family: ABCWhyteInktrap;
src: url('./fonts/ABCWhyteInktrap-RegularItalic.woff2') format('woff2');
font-weight: 400;
font-style: italic;
unicode-range: U+0041-005A, U+0061-007A, U+0030-0039;
}

/* 폰트 변경을 대비한 Poppins */
@font-face {
font-family: Poppins;
src: url('./fonts/Poppins-Regular.ttf') format('truetype');
font-weight: 400;
unicode-range: U+0041-005A, U+0061-007A, U+0030-0039;
}

@font-face {
font-family: Poppins;
src: url('./fonts/fonts/Poppins-Medium.ttf') format('truetype');
font-weight: 500;
unicode-range: U+0041-005A, U+0061-007A, U+0030-0039;
}

@font-face {
font-family: Poppins;
src: url('./fonts/Poppins-SemiBold.ttf') format('truetype');
font-weight: 600;
unicode-range: U+0041-005A, U+0061-007A, U+0030-0039;
}
/* --Font End-- */

/* --Custom Global Theme Start-- */
Expand All @@ -80,7 +44,7 @@ html {
}

body {
font-family: Pretendard, WhyteABCInktrap, Poppins, sans-serif;
font-family: Pretendard, Poppins, sans-serif;
font-size: 4.103vw;
word-break: keep-all;
}
Expand Down Expand Up @@ -446,7 +410,7 @@ input {
}

input::placeholder {
font-family: Pretendard, Poppins, sans-serif;
font-family: Pretendard, sans-serif;
font-size: 3.59vw;
line-height: 160%;
}
Expand Down Expand Up @@ -4639,7 +4603,7 @@ body,html {
}

body {
font-family: Pretendard, Poppins, ABCWhyteInktrap, sans-serif;
font-family: Pretendard, Poppins, sans-serif;
font-weight: 400;
color: #000;
min-height: 100%;
Expand Down Expand Up @@ -5622,7 +5586,7 @@ hr {
}

.wy-nav-top a {
font-family: ABCWhyteInktrap, Pretendard, sans-serif;
font-family: Pretendard, sans-serif;
font-style: italic;
display: -webkit-box;
-webkit-line-clamp: 1;
Expand Down
Binary file removed docs/_static/css/fonts/ABCWhyteInktrap-Regular.woff
Binary file not shown.
Binary file not shown.
Binary file removed docs/_static/css/fonts/OxygenMono-Regular.ttf
Binary file not shown.
Binary file removed docs/_static/css/fonts/Poppins-Medium.ttf
Binary file not shown.
Binary file removed docs/_static/css/fonts/Poppins-Regular.ttf
Binary file not shown.
Binary file removed docs/_static/css/fonts/Poppins-SemiBold.ttf
Binary file not shown.
Binary file removed docs/_static/css/fonts/Pretendard-Regular.woff
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/client/lowlevel/base.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Base Function
=============

.. module:: ai.backend.client.base
.. module:: ai.backend.client.func.base

This module defines a few utilities that ease
complexities to support both synchronous and asynchronous API functions, using
Expand All @@ -10,7 +10,7 @@ some tricks with Python metaclasses.
Unless your are contributing to the client SDK, probably you won't
have to use this module directly.

.. currentmodule:: ai.backend.client.base
.. currentmodule:: ai.backend.client.func.base

.. autoclass:: APIFunctionMeta

Expand Down
2 changes: 1 addition & 1 deletion docs/client/lowlevel/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Low-level SDK Reference
base
request
exceptions
utils
types
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Miscellaneous Utilities
Type Definitions
=======================

.. module:: ai.backend.client.utils
.. currentmodule:: ai.backend.client.utils
.. module:: ai.backend.client.types
.. currentmodule:: ai.backend.client.types

.. autoclass:: Undefined
:members:
Expand Down
Loading