Skip to content

Commit

Permalink
fix: docs logo fix and missing favicon.ico isse fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Dec 13, 2024
1 parent ef6aa30 commit 6bd626f
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 11 deletions.
15 changes: 4 additions & 11 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,21 @@ export default defineConfig({
description: "COCONUT: the COlleCtion of Open NatUral producTs",
base: '/coconut/',
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
logo: '/logo.png',

siteTitle: '',

head: [
['link', { rel: "apple-touch-icon", sizes: "180x180", href: "/assets/favicons/apple-touch-icon.png"}],
['link', { rel: "icon", type: "image/png", sizes: "32x32", href: "/assets/favicons/favicon-32x32.png"}],
['link', { rel: "icon", type: "image/png", sizes: "16x16", href: "/assets/favicons/favicon-16x16.png"}],
['link', { rel: "manifest", href: "/assets/favicons/site.webmanifest"}],
['link', { rel: "mask-icon", href: "/assets/favicons/safari-pinned-tab.svg", color: "#3a0839"}],
['link', { rel: "shortcut icon", href: "/assets/favicons/favicon.ico"}],
['meta', { name: "msapplication-TileColor", content: "#3a0839"}],
['meta', { name: "msapplication-config", content: "/assets/favicons/browserconfig.xml"}],
['link', { rel: "manifest", href: "/coconut/site.webmanifest"}],
['link', { rel: "icon", href: "/coconut/favicon.ico"}],
['meta', { name: "theme-color", content: "#ffffff"}],
],

nav: [
{ text: 'Home', link: '/introduction' },
// { text: 'API', link: 'https://coconut.cheminf.studio/api-documentation' },
{ text: 'About', link: 'https://coconut.cheminf.studio/about' },
{ text: 'Download', link: 'https://coconut.cheminf.studio/download' }
{ text: 'About', link: 'https://coconut.naturalproducts.net/about' },
{ text: 'Download', link: 'https://coconut.naturalproducts.net/download' }
],

sidebar: [
Expand Down
4 changes: 4 additions & 0 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.logo {
margin-right: 0px !important;
margin-left: 0px !important;
}
5 changes: 5 additions & 0 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// .vitepress/theme/index.js
import DefaultTheme from 'vitepress/theme'
import './custom.css'

export default DefaultTheme
Binary file added docs/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions docs/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions docs/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "COCONUT",
"short_name": "CNP",
"icons": [
{
"src": "/coconut/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/coconut/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file added docs/public/web-app-manifest-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/web-app-manifest-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6bd626f

Please sign in to comment.