Skip to content

Commit

Permalink
Merge pull request #15 from LNA-DEV/dev
Browse files Browse the repository at this point in the history
Added Local Dependencies
  • Loading branch information
LNA-DEV authored Dec 8, 2022
2 parents 6eb61da + 073a705 commit f194555
Show file tree
Hide file tree
Showing 7 changed files with 1,377 additions and 9 deletions.
2 changes: 1 addition & 1 deletion assets/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $enable-shadows: true !default;

// Theme flags.

$td-enable-google-fonts: true !default;
$td-enable-google-fonts: false !default;

// Theme colors

Expand Down
2 changes: 1 addition & 1 deletion assets/scss/rtl/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ body:lang(ur) {
}

body:lang(fa) {
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/dist/font-face.css');
@import url('/css/[email protected]');
font-family: 'Vazir', "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

Expand Down
34 changes: 28 additions & 6 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,38 @@
# cSpell:ignore docsy fortawesome fontawesome webfonts

params:
time_format_blog: Monday, January 02, 2006
time_format_default: January 2, 2006
rss_sections: [blog]
drawio:
enable: true
features:
analytics:
enabled: true
goatCounter:
code: lna-dev
code: code
ui:
readingTime:
enable: true

offlineSearch: true
algolia_docsearch: false
offlineSearchSummaryLength: 70
offlineSearchMaxResults: 10
prism_syntax_highlighting: false

mermaid:
enable: false
theme: default
plantuml:
enable: false
theme: default
svg_image_url: https://www.plantuml.com/plantuml/svg/
svg: false
katex:
enable: false
html_dom_element: document.body
mhchem:
enable: true
print:
disable_toc: false
markmap:
enable: false

outputFormats:
PRINT:
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

{{ if $needmermaid -}}
{{ $jsArray = $jsArray | append $jsMermaid -}}
<script src="https://cdn.jsdelivr.net/npm/mermaid@9.2.2/dist/mermaid.min.js" integrity="sha512-IX+bU+wShHqfqaMHLMrtwi4nK6W/Z+QdZoL4kPNtRxI2wCLyHPMAdl3a43Fv1Foqv4AP+aiW6hg1dcrTt3xc+Q==" crossorigin="anonymous"></script>
<script src="/js/mermaid.min.js"></script>
{{ end -}}

{{ $js := $jsArray | resources.Concat "js/main.js" -}}
Expand Down
65 changes: 65 additions & 0 deletions static/css/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
@font-face {
font-family: Vazir;
src: url('Vazir-Regular.eot');
src: url('Vazir-Regular.eot?#iefix') format('embedded-opentype'),
url('Vazir-Regular.woff2') format('woff2'),
url('Vazir-Regular.woff') format('woff'),
url('Vazir-Regular.ttf') format('truetype');
font-weight: normal;
font-display:swap;
}

@font-face {
font-family: Vazir;
src: url('Vazir-Bold.eot');
src: url('Vazir-Bold.eot?#iefix') format('embedded-opentype'),
url('Vazir-Bold.woff2') format('woff2'),
url('Vazir-Bold.woff') format('woff'),
url('Vazir-Bold.ttf') format('truetype');
font-weight: bold;
font-display:swap;
}

@font-face {
font-family: Vazir;
src: url('Vazir-Thin.eot');
src: url('Vazir-Thin.eot?#iefix') format('embedded-opentype'),
url('Vazir-Thin.woff2') format('woff2'),
url('Vazir-Thin.woff') format('woff'),
url('Vazir-Thin.ttf') format('truetype');
font-weight: 100;
font-display:swap;
}

@font-face {
font-family: Vazir;
src: url('Vazir-Light.eot');
src: url('Vazir-Light.eot?#iefix') format('embedded-opentype'),
url('Vazir-Light.woff2') format('woff2'),
url('Vazir-Light.woff') format('woff'),
url('Vazir-Light.ttf') format('truetype');
font-weight: 300;
font-display:swap;
}

@font-face {
font-family: Vazir;
src: url('Vazir-Medium.eot');
src: url('Vazir-Medium.eot?#iefix') format('embedded-opentype'),
url('Vazir-Medium.woff2') format('woff2'),
url('Vazir-Medium.woff') format('woff'),
url('Vazir-Medium.ttf') format('truetype');
font-weight: 500;
font-display:swap;
}

@font-face {
font-family: Vazir;
src: url('Vazir-Black.eot');
src: url('Vazir-Black.eot?#iefix') format('embedded-opentype'),
url('Vazir-Black.woff2') format('woff2'),
url('Vazir-Black.woff') format('woff'),
url('Vazir-Black.ttf') format('truetype');
font-weight: 900;
font-display:swap;
}
1,280 changes: 1,280 additions & 0 deletions static/js/mermaid.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/mermaid.min.js.map

Large diffs are not rendered by default.

0 comments on commit f194555

Please sign in to comment.