doc,rustdoc: store webfonts locally
- Avoids cross-domain requests restrictions - Better availability of content - No HTML queries needed for an offline build
This commit is contained in:
parent
14654835fc
commit
c9d995d384
8 changed files with 30 additions and 10 deletions
20
mk/docs.mk
20
mk/docs.mk
|
@ -141,6 +141,26 @@ doc/footer.inc: $(D)/footer.inc | doc/
|
||||||
@$(call E, cp: $@)
|
@$(call E, cp: $@)
|
||||||
$(Q)cp -a $< $@ 2> /dev/null
|
$(Q)cp -a $< $@ 2> /dev/null
|
||||||
|
|
||||||
|
doc/FiraSans-Regular.woff: $(D)/FiraSans-Regular.woff | doc/
|
||||||
|
@$(call E, cp: $@)
|
||||||
|
$(Q)cp -a $< $@ 2> /dev/null
|
||||||
|
|
||||||
|
doc/FiraSans-Medium.woff: $(D)/FiraSans-Medium.woff | doc/
|
||||||
|
@$(call E, cp: $@)
|
||||||
|
$(Q)cp -a $< $@ 2> /dev/null
|
||||||
|
|
||||||
|
doc/Heuristica-Regular.woff: $(D)/Heuristica-Regular.woff | doc/
|
||||||
|
@$(call E, cp: $@)
|
||||||
|
$(Q)cp -a $< $@ 2> /dev/null
|
||||||
|
|
||||||
|
doc/Heuristica-Italic.woff: $(D)/Heuristica-Italic.woff | doc/
|
||||||
|
@$(call E, cp: $@)
|
||||||
|
$(Q)cp -a $< $@ 2> /dev/null
|
||||||
|
|
||||||
|
doc/Heuristica-Bold.woff: $(D)/Heuristica-Bold.woff | doc/
|
||||||
|
@$(call E, cp: $@)
|
||||||
|
$(Q)cp -a $< $@ 2> /dev/null
|
||||||
|
|
||||||
# The (english) documentation for each doc item.
|
# The (english) documentation for each doc item.
|
||||||
|
|
||||||
define DEF_SHOULD_BUILD_PDF_DOC
|
define DEF_SHOULD_BUILD_PDF_DOC
|
||||||
|
|
BIN
src/doc/FiraSans-Medium.woff
Normal file
BIN
src/doc/FiraSans-Medium.woff
Normal file
Binary file not shown.
BIN
src/doc/FiraSans-Regular.woff
Normal file
BIN
src/doc/FiraSans-Regular.woff
Normal file
Binary file not shown.
BIN
src/doc/Heuristica-Bold.woff
Normal file
BIN
src/doc/Heuristica-Bold.woff
Normal file
Binary file not shown.
BIN
src/doc/Heuristica-Italic.woff
Normal file
BIN
src/doc/Heuristica-Italic.woff
Normal file
Binary file not shown.
BIN
src/doc/Heuristica-Regular.woff
Normal file
BIN
src/doc/Heuristica-Regular.woff
Normal file
Binary file not shown.
|
@ -14,31 +14,31 @@
|
||||||
font-family: 'Fira Sans';
|
font-family: 'Fira Sans';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: local('Fira Sans'), url("http://www.rust-lang.org/fonts/FiraSans-Regular.woff") format('woff');
|
src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Fira Sans';
|
font-family: 'Fira Sans';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
src: local('Fira Sans Medium'), url("http://www.rust-lang.org/fonts/FiraSans-Medium.woff") format('woff');
|
src: local('Fira Sans Medium'), url("FiraSans-Medium.woff") format('woff');
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Heuristica';
|
font-family: 'Heuristica';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: local('Heuristica Regular'), url("http://www.rust-lang.org/fonts/Heuristica-Regular.woff") format('woff');
|
src: local('Heuristica Regular'), url("Heuristica-Regular.woff") format('woff');
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Heuristica';
|
font-family: 'Heuristica';
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: local('Heuristica Italic'), url("http://www.rust-lang.org/fonts/Heuristica-Italic.woff") format('woff');
|
src: local('Heuristica Italic'), url("Heuristica-Italic.woff") format('woff');
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Heuristica';
|
font-family: 'Heuristica';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
src: local('Heuristica Bold'), url("http://www.rust-lang.org/fonts/Heuristica-Bold.woff") format('woff');
|
src: local('Heuristica Bold'), url("Heuristica-Bold.woff") format('woff');
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
|
|
@ -13,31 +13,31 @@
|
||||||
font-family: 'Fira Sans';
|
font-family: 'Fira Sans';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: local('Fira Sans'), url("http://www.rust-lang.org/fonts/FiraSans-Regular.woff") format('woff');
|
src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Fira Sans';
|
font-family: 'Fira Sans';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
src: local('Fira Sans Medium'), url("http://www.rust-lang.org/fonts/FiraSans-Medium.woff") format('woff');
|
src: local('Fira Sans Medium'), url("FiraSans-Medium.woff") format('woff');
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Heuristica';
|
font-family: 'Heuristica';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: local('Heuristica Regular'), url("http://www.rust-lang.org/fonts/Heuristica-Regular.woff") format('woff');
|
src: local('Heuristica Regular'), url("Heuristica-Regular.woff") format('woff');
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Heuristica';
|
font-family: 'Heuristica';
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: local('Heuristica Italic'), url("http://www.rust-lang.org/fonts/Heuristica-Italic.woff") format('woff');
|
src: local('Heuristica Italic'), url("Heuristica-Italic.woff") format('woff');
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Heuristica';
|
font-family: 'Heuristica';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
src: local('Heuristica Bold'), url("http://www.rust-lang.org/fonts/Heuristica-Bold.woff") format('woff');
|
src: local('Heuristica Bold'), url("Heuristica-Bold.woff") format('woff');
|
||||||
}
|
}
|
||||||
|
|
||||||
@import "normalize.css";
|
@import "normalize.css";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue