Skip to content

Commit e39f77e

Browse files
committed
docs: 📝 Add more info about geography
1 parent 856c488 commit e39f77e

File tree

6 files changed

+87
-41
lines changed

6 files changed

+87
-41
lines changed

.vitepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export default defineConfig({
3535
},
3636
sidebar: generateSidebar({
3737
documentRootPath: "docs",
38+
useTitleFromFrontmatter: true,
3839
}),
3940
// https://vitepress.dev/reference/default-theme-config
4041
},

.vitepress/theme/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import type { Theme } from "vitepress";
33
import DefaultTheme from "vitepress/theme";
44
import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client";
5+
import "./theme.css";
56

67
export default {
78
extends: DefaultTheme,

.vitepress/theme/theme.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
figure {
2+
margin: 1em 0;
3+
}
4+
5+
figure > figcaption {
6+
text-align: center;
7+
font-size: 0.8em;
8+
font-weight: semibold;
9+
margin-top: 0.5em;
10+
color: var(--vp-c-text-2);
11+
}
12+
13+
img {
14+
border-radius: 0.2rem;
15+
border: 0.1px solid var(--vp-c-border);
16+
background-color: var(--vp-c-bg-alt);
17+
margin: 0 auto;
18+
}
19+
20+
h1 {
21+
margin-top: 1.5em;
22+
}

docs/The World/geography.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: Geography
3+
---
4+
5+
# Geography
6+
7+
The world as we know it is not an infinite expanse of land and water. It is a finite space, with many boundaries and borders that define the limits of different regions. These regions are known as continents, countries, states, provinces, cities, and towns.
8+
9+
There is no part of the world that has not been explored or mapped. Every inch of the Earth is surveyed, photographed and documented. However, human beings do not live everywhere, as some parts of the world can be hard to inhabit.
10+
11+
![A map of the entire world. Note that some parts are stretched, as the Earth is a sphere.](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/Map_of_the_world_by_the_US_Gov_as_of_2016_no_legend.svg/1280px-Map_of_the_world_by_the_US_Gov_as_of_2016_no_legend.svg.png)
12+
13+
## Continents
14+
15+
The Earth can be divided into a couple of separate landmasses, known as continents. There are roughly seven such major landmasses, each with its own unique geography, climate, and culture.
16+
17+
### Africa
18+
19+
Africa is the second-largest continent on Earth, after Asia. It is home to a diverse range of cultures, languages, and peoples. The continent is known for its vast deserts, dense rainforests, and savannahs.
20+
21+
![A map of Africa.](https://upload.wikimedia.org/wikipedia/commons/8/86/Africa_%28orthographic_projection%29.svg)
22+
23+
24+
### Asia
25+
26+
![A map of Asia.](https://upload.wikimedia.org/wikipedia/commons/8/80/Asia_%28orthographic_projection%29.svg)
27+
28+
### Europe
29+
30+
![A map of Europe.](https://upload.wikimedia.org/wikipedia/commons/4/44/Europe_orthographic_Caucasus_Urals_boundary_%28with_borders%29.svg)
31+
32+
### North America
33+
34+
![A map of North America.](https://upload.wikimedia.org/wikipedia/commons/4/43/Location_North_America.svg)
35+
36+
### South America
37+
38+
![A map of South America.](https://upload.wikimedia.org/wikipedia/commons/0/0f/South_America_%28orthographic_projection%29.svg)
39+
40+
### Oceania
41+
42+
![A map of Oceania.](https://upload.wikimedia.org/wikipedia/commons/8/8e/Oceania_%28orthographic_projection%29.svg)
43+
44+
### Antarctica

docs/index.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
<style>
2-
figure {
3-
margin: 1em 0;
4-
}
5-
6-
figure > figcaption {
7-
text-align: center;
8-
font-size: 0.8em;
9-
font-weight: semibold;
10-
margin-top: 0.5em;
11-
color: var(--vp-c-text-2);
12-
}
13-
14-
img {
15-
border-radius: 0.3em;
16-
}
17-
18-
h1 {
19-
margin-top: 1.5em;
20-
}
21-
</style>
22-
231
> [!IMPORTANT]
242
> This document is not feature-complete and is a work in progress. Please check back later for more information.
253

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"name": "life-docs",
3-
"type": "module",
4-
"devDependencies": {
5-
"@biomejs/biome": "^1.7.3",
6-
"@types/bun": "latest",
7-
"markdown-it-image-figures": "^2.1.1",
8-
"vitepress": "^1.2.2",
9-
"vitepress-plugin-tabs": "^0.5.0",
10-
"vitepress-sidebar": "^1.23.2"
11-
},
12-
"peerDependencies": {
13-
"typescript": "^5.0.0"
14-
},
15-
"scripts": {
16-
"docs:dev": "vitepress dev",
17-
"docs:build": "vitepress build",
18-
"docs:preview": "vitepress preview"
19-
},
20-
"trustedDependencies": ["@biomejs/biome"]
2+
"name": "life-docs",
3+
"type": "module",
4+
"devDependencies": {
5+
"@biomejs/biome": "^1.7.3",
6+
"@types/bun": "latest",
7+
"markdown-it-image-figures": "^2.1.1",
8+
"vitepress": "^1.2.2",
9+
"vitepress-plugin-tabs": "^0.5.0",
10+
"vitepress-sidebar": "^1.23.2"
11+
},
12+
"peerDependencies": {
13+
"typescript": "^5.0.0"
14+
},
15+
"scripts": {
16+
"docs:dev": "vitepress dev",
17+
"docs:build": "vitepress build",
18+
"docs:preview": "vitepress preview"
19+
},
20+
"trustedDependencies": ["@biomejs/biome"]
2121
}

0 commit comments

Comments
 (0)