Skip to content

Commit

Permalink
Use local open sans for TPF page
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinovg authored and chenejac committed May 31, 2024
1 parent 664b1d6 commit 33bf9a7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/main/resources/tpf/base.ftl.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8">
<title>Linked Data Fragments Server ${ (title!header)?ensure_starts_with("(")?ensure_ends_with(")") }</title>
<link rel="stylesheet" href="${ assetsPath }style.css" />
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:700italic,400,700|Droid+Sans+Mono" type="text/css" />
<link rel="stylesheet" href="../webjars/fonts/open-sans/open-sans.css" type="text/css" />
<meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1">
</head>
<body>
Expand Down
24 changes: 24 additions & 0 deletions webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,25 @@
</fileMappers>
<outputDirectory>target/${project.artifactId}-${project.version}/webjars/fonts/noto-sans/</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.webjars.npm</groupId>
<artifactId>npm-font-open-sans</artifactId>
<type>jar</type>
<includes>
META-INF/resources/webjars/npm-font-open-sans/*/*.css,
META-INF/resources/webjars/npm-font-open-sans/*/*/*/*.woff,
META-INF/resources/webjars/npm-font-open-sans/*/*/*/*.ttf,
META-INF/resources/webjars/npm-font-open-sans/*/*/*/*.svg,
META-INF/resources/webjars/npm-font-open-sans/*/*/*/*.woff2
</includes>
<fileMappers>
<org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
<pattern>^META-INF/resources/webjars/npm-font-open-sans/[^/]+/</pattern>
<replacement>./</replacement>
</org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
</fileMappers>
<outputDirectory>target/${project.artifactId}-${project.version}/webjars/fonts/open-sans/</outputDirectory>
</artifactItem>
</artifactItems>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
Expand Down Expand Up @@ -163,6 +182,11 @@
<artifactId>openfonts__noto-sans_all</artifactId>
<version>1.44.0</version>
</dependency>
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>npm-font-open-sans</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>org.vivoweb</groupId>
<artifactId>vitro-api</artifactId>
Expand Down

0 comments on commit 33bf9a7

Please sign in to comment.