feat(docs): host docs with docsify
This commit is contained in:
11
docs/components/cover.md
Normal file
11
docs/components/cover.md
Normal file
@@ -0,0 +1,11 @@
|
||||
<!-- _coverpage.md -->
|
||||
|
||||
# 
|
||||
|
||||
# Contribute to the freeCodeCamp.org
|
||||
|
||||
> This community is possible thanks to thousands of kind volunteers like you.
|
||||
|
||||
[Start contributing](/readme)
|
||||
|
||||

|
116
docs/components/logo.svg
Normal file
116
docs/components/logo.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 34 KiB |
0
docs/components/nav.md
Normal file
0
docs/components/nav.md
Normal file
6
docs/components/sidebar.md
Normal file
6
docs/components/sidebar.md
Normal file
@@ -0,0 +1,6 @@
|
||||
- [Overview](/ 'Contribute to the freeCodeCamp.org Community')
|
||||
- **Guides**
|
||||
- [How to work on coding challenges](/how-to-work-on-coding-challenges)
|
||||
- [How to setup freeCodeCamp locally](/how-to-setup-freecodecamp-locally)
|
||||
- [How to open a pull request](/how-to-open-a-pull-request)
|
||||
- [How we do DevOps at freeCodeCamp.org](/devops.md)
|
349
docs/components/theme.css
Normal file
349
docs/components/theme.css
Normal file
@@ -0,0 +1,349 @@
|
||||
:root {
|
||||
--theme-color: #0a0a23;
|
||||
--theme-color-dark: #002ead;
|
||||
|
||||
--text-color-base: #2e2e46;
|
||||
--text-color-secondary: #646473;
|
||||
--text-color-tertiary: #81818e;
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: 100%;
|
||||
line-height: 1.5;
|
||||
color: var(--text-color-base);
|
||||
}
|
||||
|
||||
* {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
a {
|
||||
transition: all 0.3s linear;
|
||||
}
|
||||
|
||||
.github-corner {
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
/****** Cover Page ******/
|
||||
section.cover {
|
||||
padding-bottom: 112px; /* fixed footer (Netflix) height */
|
||||
height: auto;
|
||||
min-height: 100vh;
|
||||
/**
|
||||
* Intended to defeat this inline style on initial boot that flashes when on page load:
|
||||
* https://github.com/docsifyjs/docsify/blob/8352a1e489abc2a7b6361fe02d696e1891a031cd/src/core/render/tpl.js#L56-L70
|
||||
*/
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
section.cover .cover-main {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
margin: 0;
|
||||
padding: 32px 16px 0;
|
||||
}
|
||||
|
||||
section.cover img {
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
section.cover h1 {
|
||||
margin: 0.625rem 0 1rem;
|
||||
}
|
||||
|
||||
section.cover blockquote,
|
||||
section.cover blockquote p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
section.cover ul {
|
||||
font-size: 1.25rem;
|
||||
line-height: 2rem;
|
||||
display: grid;
|
||||
text-align: left;
|
||||
grid-column-gap: 16px;
|
||||
grid-row-gap: 20px;
|
||||
grid-template-columns: repeat(2, 50%);
|
||||
list-style: none;
|
||||
max-width: unset;
|
||||
margin: 1.5em 0;
|
||||
}
|
||||
|
||||
section.cover ul li {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
section.cover.show ~ .sidebar,
|
||||
section.cover.show ~ .sidebar-toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.cover-main .netflix-logo {
|
||||
position: fixed;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: #ffffff;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
padding: 40px;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.cover-main .netflix-logo .logo {
|
||||
width: 125px;
|
||||
height: 32px;
|
||||
background: url('images/Netflix_Logo.png');
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
}
|
||||
|
||||
.cover-main .buttons {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.cover-main .buttons a {
|
||||
font-weight: 700;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 12px 25px;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
line-height: 18px;
|
||||
color: #221f1f;
|
||||
background: #fff;
|
||||
outline: none;
|
||||
border: none;
|
||||
background-color: #fff;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
cursor: pointer;
|
||||
margin: 0 1rem;
|
||||
color: var(--theme-color);
|
||||
overflow: hidden;
|
||||
transition: color 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||
vertical-align: baseline;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.cover-main .buttons a:before,
|
||||
.cover-main .buttons a:after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
border: 2px solid var(--theme-color);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.cover-main .buttons a:after {
|
||||
background: var(--theme-color);
|
||||
transform: translateX(-101%);
|
||||
transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||
}
|
||||
|
||||
.cover-main .buttons a:hover {
|
||||
color: white;
|
||||
box-shadow: 0 5px 16px rgba(229, 9, 20, 0.3);
|
||||
}
|
||||
|
||||
.cover-main .buttons a:hover:after {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.cover-main .buttons a span {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@media (max-width: 850px) {
|
||||
section.cover ul {
|
||||
grid-template-columns: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
section.cover ul li {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 450px) {
|
||||
section.cover ul li {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.cover-main .buttons a {
|
||||
width: 100%;
|
||||
margin: 0.2rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
/****** Sidebar ******/
|
||||
.sidebar ul li a:hover {
|
||||
color: var(--theme-color);
|
||||
}
|
||||
|
||||
.sidebar .search .clear-button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/****** Sidebar Toggle ******/
|
||||
.sidebar-toggle {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
body .sidebar-toggle {
|
||||
background: none;
|
||||
top: 1.5rem;
|
||||
left: calc(300px + 1.5rem);
|
||||
cursor: pointer;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
padding: 0;
|
||||
transition: left 0.25s ease-out;
|
||||
}
|
||||
|
||||
body .sidebar-toggle span {
|
||||
background-color: var(--theme-color);
|
||||
height: 0.2rem;
|
||||
width: 1.5rem;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
transform-origin: 0;
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
body.close .sidebar-toggle {
|
||||
transition: left 0.25s ease-out;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
left: 1.5rem;
|
||||
}
|
||||
|
||||
body.close .sidebar-toggle span {
|
||||
transform-origin: center;
|
||||
}
|
||||
|
||||
body .sidebar-toggle span:nth-child(1) {
|
||||
top: 0;
|
||||
}
|
||||
body .sidebar-toggle span:nth-child(2) {
|
||||
top: 0.5rem;
|
||||
}
|
||||
body .sidebar-toggle span:nth-child(3) {
|
||||
top: 1rem;
|
||||
}
|
||||
|
||||
.sidebar-toggle:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.sidebar-toggle .sidebar-toggle-button:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
body .sidebar-toggle {
|
||||
left: 1rem;
|
||||
}
|
||||
|
||||
body.close .sidebar-toggle {
|
||||
left: calc(300px + 1.5rem);
|
||||
}
|
||||
}
|
||||
|
||||
/****** Markdown General ******/
|
||||
.markdown-section {
|
||||
padding: 30px 30px 40px;
|
||||
}
|
||||
|
||||
.markdown-section a {
|
||||
text-decoration: none;
|
||||
border-bottom: 0.01rem solid var(--theme-color);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.markdown-section a:hover {
|
||||
border-color: var(--theme-color-dark);
|
||||
color: var(--theme-color-dark);
|
||||
}
|
||||
|
||||
.markdown-section a.anchor {
|
||||
border: none;
|
||||
}
|
||||
|
||||
/****** Markdown Table ******/
|
||||
.markdown-section table {
|
||||
display: table;
|
||||
}
|
||||
|
||||
.markdown-section table tr {
|
||||
border-width: 0.15rem 0;
|
||||
border-style: solid;
|
||||
border-color: #f1f1f2;
|
||||
}
|
||||
|
||||
.markdown-section table thead tr {
|
||||
text-transform: uppercase;
|
||||
font-size: 90%;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.markdown-section table tbody tr:last-of-type {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.markdown-section table tr:nth-child(2n) {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.markdown-section table td,
|
||||
.markdown-section table th {
|
||||
border: none;
|
||||
padding: 1.1rem 0.5rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.markdown-section table td p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.markdown-section blockquote {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.markdown-section blockquote > p {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.markdown-section em,
|
||||
.markdown-section blockquote {
|
||||
color: var(--text-color-tertiary);
|
||||
}
|
||||
|
||||
/****** CODE HIGHLIGHTING ******/
|
||||
.token.string {
|
||||
color: #42b983;
|
||||
}
|
||||
|
||||
.token.boolean,
|
||||
.token.number {
|
||||
color: var(--theme-color);
|
||||
}
|
||||
|
||||
.lang-bash .token.function,
|
||||
.lang-json .token.property {
|
||||
color: #e96900;
|
||||
}
|
||||
|
||||
/****** COPY TO CLIPBOARD ******/
|
||||
.docsify-copy-code-button {
|
||||
font-size: 0.7em !important;
|
||||
}
|
Reference in New Issue
Block a user