Skip to content

Commit 3718b79

Browse files
authored
Merge pull request #2 from ttelang/main
Refining Fonts as per MicroProfile Branding Guidelines and updating favicon
2 parents 6420886 + e931e88 commit 3718b79

File tree

12 files changed

+51
-3
lines changed

12 files changed

+51
-3
lines changed

gulp.d/tasks/build-preview-pages.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ module.exports = (src, previewSrc, previewDest, sink = () => map()) => (done) =>
5959
uiModel.page.layout = doc.getAttribute('page-layout', 'default')
6060
uiModel.page.title = doc.getDocumentTitle()
6161
uiModel.page.contents = Buffer.from(doc.convert())
62+
63+
// Set a meaningful editUrl for preview pages that points to the actual GitHub repo
64+
const relativePath = path.relative(previewSrc, file.path)
65+
uiModel.page.editUrl = `https://github.com/microprofile/microprofile-tutorial-ui/edit/main/preview-src/${relativePath}`
6266
}
6367
file.extname = '.html'
6468
try {

preview-src/ui-model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ page:
6363
displayVersion: '5.2'
6464
module: ROOT
6565
relativeSrcPath: index.adoc
66-
editUrl: http://example.com/project-xyz/blob/main/index.adoc
66+
editUrl: https://github.com/microprofile/microprofile-tutorial-ui/edit/main/preview-src/index.adoc
6767
origin:
6868
private: false
6969
previous:

src/css/breadcrumbs.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
flex: 1 1;
44
padding: 0 0.5rem 0 0.75rem;
55
line-height: var(--nav-line-height);
6+
font-family: var(--body-font-family);
7+
font-weight: normal;
68
}
79

810
@media screen and (min-width: 1024px) {

src/css/header.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ body {
3737
font-size: calc(22 / var(--rem-base) * 1rem);
3838
flex-wrap: wrap;
3939
line-height: 1;
40+
font-family: var(--heading-font-family);
41+
font-weight: normal;
4042
}
4143

4244
.navbar-brand .navbar-item:first-child a {

src/css/nav.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ html.is-clipped--nav {
182182
justify-content: space-between;
183183
line-height: 1;
184184
height: var(--drawer-height);
185+
font-family: var(--heading-font-family);
186+
font-weight: normal;
185187
}
186188

187189
.nav-panel-explore:not(:first-child) .context {

src/css/page-versions.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
padding: 0.5rem 1.5rem 0.5rem 0.5rem;
2323
position: relative;
2424
z-index: var(--z-index-page-version-menu);
25+
font-family: var(--heading-font-family);
26+
font-weight: normal;
2527
}
2628

2729
.page-versions .version-menu {

src/css/site.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'typeface-open-sans.css';
1+
@import 'typeface-lato.css';
22
@import 'typeface-roboto-mono.css';
33
@import 'vars.css';
44
@import 'base.css';

src/css/toc.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
line-height: 1.3;
1616
margin: 0 -1px;
1717
padding-bottom: 0.25rem;
18+
font-family: var(--heading-font-family);
1819
}
1920

2021
.toc.sidebar .toc-menu h3 {

src/css/typeface-lato.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/* lato-latin-400-normal */
2+
@font-face {
3+
font-family: Lato;
4+
font-style: normal;
5+
font-display: swap;
6+
font-weight: 400;
7+
src: url('https://fonts.gstatic.com/s/lato/v24/S6uyw4BMUTPHjx4wXg.woff2') format('woff2');
8+
}
9+
10+
/* lato-latin-700-normal */
11+
@font-face {
12+
font-family: Lato;
13+
font-style: normal;
14+
font-display: swap;
15+
font-weight: 700;
16+
src: url('https://fonts.gstatic.com/s/lato/v24/S6u9w4BMUTPHh6UVSwiPGQ.woff2') format('woff2');
17+
}
18+
19+
/* lato-latin-400-italic */
20+
@font-face {
21+
font-family: Lato;
22+
font-style: italic;
23+
font-display: swap;
24+
font-weight: 400;
25+
src: url('https://fonts.gstatic.com/s/lato/v24/S6u8w4BMUTPHjxsAXC-q.woff2') format('woff2');
26+
}
27+
28+
/* lato-latin-700-italic */
29+
@font-face {
30+
font-family: Lato;
31+
font-style: italic;
32+
font-display: swap;
33+
font-weight: 700;
34+
src: url('https://fonts.gstatic.com/s/lato/v24/S6u_w4BMUTPHjxsI5wq_Gwft.woff2') format('woff2');
35+
}

src/img/favicon.ico

683 Bytes
Binary file not shown.

src/partials/head-icons.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{!-- <link rel="icon" href="{{{uiRootPath}}}/img/favicon.ico" type="image/x-icon"> --}}
1+
<link rel="icon" href="{{{uiRootPath}}}/img/favicon.ico" type="image/x-icon">

src/static/favicon.ico

-31.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)