فهرست منبع

book: Finalize design.

parazyd 4 سال پیش
والد
کامیت
33ea16a504
4فایلهای تغییر یافته به همراه11 افزوده شده و 247 حذف شده
  1. 5 4
      README.md
  2. 1 1
      bin/map/src/main.rs
  3. 5 1
      book/Makefile
  4. 0 241
      book/theme/highlight.css

+ 5 - 4
README.md

@@ -1,9 +1,10 @@
 # DarkFi
 
-![Build Status](https://github.com/darkrenaissance/darkfi/actions/workflows/ci.yml/badge.svg)
-[![Web - dark.fi](https://img.shields.io/badge/Web-dark.fi-white?logo=firefox&logoColor=white)](https://dark.fi)
-[![Manifesto - unsystem](https://img.shields.io/badge/Manifesto-unsystem-informational?logo=minutemailer&logoColor=white)](https://lists.dyne.org/lurker/message/20211021.123016.3dccaf0c.en.html)
-[![Book - mdbook](https://img.shields.io/badge/Book-mdbook-orange?logo=gitbook&logoColor=white)](https://darkrenaissance.github.io/darkfi)
+![Build Status](https://img.shields.io/github/workflow/status/darkrenaissance/darkfi/CI%20Checks?style=flat-square)
+[![Web - dark.fi](https://img.shields.io/badge/Web-dark.fi-white?logo=firefox&logoColor=white&style=flat-square)](https://dark.fi)
+[![Manifesto - unsystem](https://img.shields.io/badge/Manifesto-unsystem-informational?logo=minutemailer&logoColor=white&style=flat-square)](https://lists.dyne.org/lurker/message/20211021.123016.3dccaf0c.en.html)
+[![Book - mdbook](https://img.shields.io/badge/Book-mdbook-orange?logo=gitbook&logoColor=white&style=flat-square)](https://darkrenaissance.github.io/darkfi)
+
 
 ## Build
 

+ 1 - 1
bin/map/src/main.rs

@@ -264,7 +264,7 @@ async fn render<B: Backend>(terminal: &mut Terminal<B>, model: Arc<Model>) -> io
             match k.unwrap() {
                 Key::Char('q') => {
                     terminal.clear()?;
-                    return Ok(());
+                    return Ok(())
                 }
                 Key::Char('j') => {
                     view.id_list.next();

+ 5 - 1
book/Makefile

@@ -10,8 +10,12 @@ all:
 		>> src/clients/cashierd_jsonrpc.md
 
 	mdbook build
+	cp -f theme/logo* book/html/
+
+clean:
+	rm -rf book
 
 github: all
 	ghp-import -m "Generate mdbook" -b gh-pages book/html
 
-.PHONY: all github
+.PHONY: all clean github

+ 0 - 241
book/theme/highlight.css

@@ -1,241 +0,0 @@
-/*
- * An increased contrast highlighting scheme loosely based on the
- * "Base16 Atelier Dune Light" theme by Bram de Haan
- * (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)
- * Original Base16 color scheme by Chris Kempson
- * (https://github.com/chriskempson/base16)
- */
-
-/* Comment */
-.hljs-comment,
-.hljs-quote {
-  color: #575757;
-}
-
-/* Red */
-.hljs-variable,
-.hljs-template-variable,
-.hljs-attribute,
-.hljs-tag,
-.hljs-name,
-.hljs-regexp,
-.hljs-link,
-.hljs-name,
-.hljs-selector-id,
-.hljs-selector-class {
-  color: #d70025;
-}
-
-/* Orange */
-.hljs-number,
-.hljs-meta,
-.hljs-built_in,
-.hljs-builtin-name,
-.hljs-literal,
-.hljs-type,
-.hljs-params {
-  color: #b21e00;
-}
-
-/* Green */
-.hljs-string,
-.hljs-symbol,
-.hljs-bullet {
-  color: #008200;
-}
-
-/* Blue */
-.hljs-title,
-.hljs-section {
-  color: #0030f2;
-}
-
-/* Purple */
-.hljs-keyword,
-.hljs-selector-tag {
-  color: #9d00ec;
-}
-
-.hljs {
-  display: block;
-  overflow-x: auto;
-  background: #f6f7f6;
-  color: #000;
-  padding: 0.5em;
-}
-
-.hljs-emphasis {
-  font-style: italic;
-}
-
-.hljs-strong {
-  font-weight: bold;
-}
-
-.hljs-addition {
-  color: #22863a;
-  background-color: #f0fff4;
-}
-
-.hljs-deletion {
-  color: #b31d28;
-  background-color: #ffeef0;
-}
-
-/*
-
--------------
-DarkFi Theme
--------------
-
-*/
-
-#theme-list{
-  background-color:#000;
-  border-radius:0;
-}
-
-h1,h2{
-  font-family:'InterDisplay', sans-serif;
-  font-weight:900;
-  letter-spacing:0.035em;
-}
-
-h3,h4,h5,h6{
-  font-family:'Inter', sans-serif;
-  font-weight:900;
-}
-
-h1{
-  border-left: 10px solid #0ff;
-  padding-left:15px;
-  padding-top:0;
-  padding-bottom:0;
-}
-
-h2{
-  border-left: 7px solid #747474;
-  padding-left:10px;
-}
-
-h3{
-  border-left: 4px solid #747474;
-  padding-left:10px;
-}
-
-.menu-title{
-border:0;
-background-image:url("logo.png");
-background-size:contain;
-background-repeat:no-repeat;
-background-position: center;
-font-size:0;
-}
-
-#sidebar{
-  border-right: 1px solid #596067;
-}
-
-.sidebar-scrollbox{
-  margin-left:15px;
-}
-
-#menu-bar{
-  border-bottom: 1px solid #596067;
-  margin-bottom:5px;
-}
-
-#content{
-  margin-top:30px;
-}
-
-.hljs{
-    border:1px solid #104242;
-    border-radius:0;
-    padding:17px;
-}
-
-p .hljs{
-    border:0;
-    background:#232323;
-}
-
-blockquote{
-  border-left: 1px solid #5B8E8E;
-}
-
-.chapter{
-  font-family:'Inter', sans-serif;
-  font-weight:700;
-  font-size:1.1em;
-}
-
-.chapter-item{
-  margin-top:0px;
-}
-
-table{
-  width:100%;
-  border:1px solid #1C1C1C;
-}
-
-thead{
-  text-align:left;
-  height:40px;
-  border-bottom:1px solid #4B4B4B;
-}
-
-tr{
-  height:40px;
-  border-bottom:1px solid #4B4B4B;
-}
-
-.content ul{
-  list-style-type: square;
-}
-
-.content a:hover{
-  text-decoration: none; color:#C23D4C;
-}
-
-.content p a code:hover{
-  text-decoration:none;
-  color:#E76A78;
-}
-
-/* Code */
-
-.hljs-keyword{
-  color:#29BFBF;
-}
-
-.hljs-literal{
-  color:#B1ABDB;
-}
-
-.hljs-number{
-  color:#C8838B;
-}
-
-.hljs-built_in{
-  color:#FCB8F2;
-}
-
-.hljs-string{
-  color:#9DE5EF;
-}
-
-.hljs-meta{
-  color:#65C8FF;
-}
-
-.hljs-title{
-  color:#BEFF03;
-}
-
-/* Notes */
-
-.footnote-definition{
-  font-family:'IBMPlexMono', monospace;
-  color:#5C6773;
-}