File tree Expand file tree Collapse file tree 14 files changed +10281
-0
lines changed
Expand file tree Collapse file tree 14 files changed +10281
-0
lines changed Original file line number Diff line number Diff line change 1+ # Dependencies
2+ /node_modules
3+
4+ # Production
5+ /build
6+
7+ # Generated files
8+ .docusaurus
9+ .cache-loader
10+
11+ # Misc
12+ .DS_Store
13+ .env.local
14+ .env.development.local
15+ .env.test.local
16+ .env.production.local
17+
18+ npm-debug.log *
19+ yarn-debug.log *
20+ yarn-error.log *
Original file line number Diff line number Diff line change 1+ # Website
2+
3+ This website is built using [ Docusaurus 2] ( https://v2.docusaurus.io/ ) , a modern static website generator.
4+
5+ ### Installation
6+
7+ ```
8+ $ yarn
9+ ```
10+
11+ ### Local Development
12+
13+ ```
14+ $ yarn start
15+ ```
16+
17+ This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
18+
19+ ### Build
20+
21+ ```
22+ $ yarn build
23+ ```
24+
25+ This command generates static content into the ` build ` directory and can be served using any static contents hosting service.
26+
27+ ### Deployment
28+
29+ ```
30+ $ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
31+ ```
32+
33+ If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the ` gh-pages ` branch.
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ presets : [ require . resolve ( '@docusaurus/core/lib/babel/preset' ) ] ,
3+ } ;
Original file line number Diff line number Diff line change 1+ ---
2+ id : doc1
3+ title : 初期記事
4+ ---
5+
6+ 初期記事
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ title : 'ut.code(); Learn' ,
3+ tagline : 'ut.code(); Learn' ,
4+ url : 'https://learn.utcode.net/' ,
5+ baseUrl : '/' ,
6+ onBrokenLinks : 'throw' ,
7+ favicon : 'img/favicon.ico' ,
8+ organizationName : 'ut-code' ,
9+ projectName : 'utcode-learn' ,
10+ themeConfig : {
11+ navbar : {
12+ title : 'ut.code(); Learn' ,
13+ logo : {
14+ alt : 'ut.code();' ,
15+ src : 'img/logo.svg' ,
16+ } ,
17+ items : [
18+ {
19+ to : 'docs/' ,
20+ activeBasePath : 'docs' ,
21+ label : 'テキスト' ,
22+ position : 'left' ,
23+ } ,
24+ {
25+ href : 'https://utcode.net/' ,
26+ label : 'ut.code();' ,
27+ position : 'right' ,
28+ } ,
29+ ] ,
30+ } ,
31+ footer : {
32+ style : 'dark' ,
33+ links : [
34+ {
35+ title : 'ut.code(); について' ,
36+ items : [
37+ {
38+ label : '公式ウェブサイト' ,
39+ href : 'https://utcode.net/' ,
40+ } ,
41+ {
42+ label : 'Twitter' ,
43+ href : 'https://twitter.com/utokyo_code' ,
44+ } ,
45+ ] ,
46+ }
47+ ] ,
48+ copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } ut.code();. Built with Docusaurus.` ,
49+ } ,
50+ } ,
51+ presets : [
52+ [
53+ '@docusaurus/preset-classic' ,
54+ {
55+ docs : {
56+ homePageId : 'doc1' ,
57+ sidebarPath : require . resolve ( './sidebars.js' ) ,
58+ editUrl : 'https://github.com/ut-code/utcode-learn/' ,
59+ } ,
60+ theme : {
61+ customCss : require . resolve ( './src/css/custom.css' ) ,
62+ } ,
63+ } ,
64+ ] ,
65+ ] ,
66+ } ;
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " utcode-learn" ,
3+ "version" : " 0.0.0" ,
4+ "private" : true ,
5+ "scripts" : {
6+ "docusaurus" : " docusaurus" ,
7+ "start" : " docusaurus start" ,
8+ "build" : " docusaurus build" ,
9+ "swizzle" : " docusaurus swizzle" ,
10+ "deploy" : " docusaurus deploy" ,
11+ "serve" : " docusaurus serve"
12+ },
13+ "dependencies" : {
14+ "@docusaurus/core" : " ^2.0.0-alpha.61" ,
15+ "@docusaurus/preset-classic" : " ^2.0.0-alpha.61" ,
16+ "@mdx-js/react" : " ^1.5.8" ,
17+ "clsx" : " ^1.1.1" ,
18+ "react" : " ^16.8.4" ,
19+ "react-dom" : " ^16.8.4"
20+ },
21+ "browserslist" : {
22+ "production" : [
23+ " >0.2%" ,
24+ " not dead" ,
25+ " not op_mini all"
26+ ],
27+ "development" : [
28+ " last 1 chrome version" ,
29+ " last 1 firefox version" ,
30+ " last 1 safari version"
31+ ]
32+ }
33+ }
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ docsSidebar : {
3+ '初期' : [ 'doc1' ] ,
4+ } ,
5+ } ;
Original file line number Diff line number Diff line change 1+ /* stylelint-disable docusaurus/copyright-header */
2+ /**
3+ * Any CSS included here will be global. The classic template
4+ * bundles Infima by default. Infima is a CSS framework designed to
5+ * work well for content-centric websites.
6+ */
7+
8+ /* You can override the default Infima variables here. */
9+ : root {
10+ --ifm-color-primary : # 25c2a0 ;
11+ --ifm-color-primary-dark : rgb (33 , 175 , 144 );
12+ --ifm-color-primary-darker : rgb (31 , 165 , 136 );
13+ --ifm-color-primary-darkest : rgb (26 , 136 , 112 );
14+ --ifm-color-primary-light : rgb (70 , 203 , 174 );
15+ --ifm-color-primary-lighter : rgb (102 , 212 , 189 );
16+ --ifm-color-primary-lightest : rgb (146 , 224 , 208 );
17+ --ifm-code-font-size : 95% ;
18+ }
19+
20+ .docusaurus-highlight-code-line {
21+ background-color : rgb (72 , 77 , 91 );
22+ display : block;
23+ margin : 0 calc (-1 * var (--ifm-pre-padding ));
24+ padding : 0 var (--ifm-pre-padding );
25+ }
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import clsx from 'clsx' ;
3+ import Layout from '@theme/Layout' ;
4+ import Link from '@docusaurus/Link' ;
5+ import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
6+ import useBaseUrl from '@docusaurus/useBaseUrl' ;
7+ import styles from './styles.module.css' ;
8+
9+ function Home ( ) {
10+ const context = useDocusaurusContext ( ) ;
11+ const { siteConfig = { } } = context ;
12+ return (
13+ < Layout
14+ title = { `ut.code(); Learn` }
15+ description = "ut.code(); 内部向け学習資料です。" >
16+ < header className = { clsx ( 'hero hero--primary' , styles . heroBanner ) } >
17+ < div className = "container" >
18+ < h1 className = "hero__title" > { siteConfig . title } </ h1 >
19+ < p className = "hero__subtitle" > { siteConfig . tagline } </ p >
20+ < div className = { styles . buttons } >
21+ < Link
22+ className = { clsx (
23+ 'button button--outline button--secondary button--lg' ,
24+ styles . getStarted ,
25+ ) }
26+ to = { useBaseUrl ( 'docs/' ) } >
27+ はじめる
28+ </ Link >
29+ </ div >
30+ </ div >
31+ </ header >
32+ < main >
33+ ut.code(); Learnは、ut.code();の内部向け学習資料です。
34+ </ main >
35+ </ Layout >
36+ ) ;
37+ }
38+
39+ export default Home ;
Original file line number Diff line number Diff line change 1+ .heroBanner {
2+ padding : 4rem 0 ;
3+ text-align : center;
4+ position : relative;
5+ overflow : hidden;
6+ }
7+
8+ @media screen and (max-width : 966px ) {
9+ .heroBanner {
10+ padding : 2rem ;
11+ }
12+ }
13+
14+ .buttons {
15+ display : flex;
16+ align-items : center;
17+ justify-content : center;
18+ }
19+
20+ main {
21+ padding : 1rem ;
22+ }
You can’t perform that action at this time.
0 commit comments