Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add unfurl image + metadata #1019

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions main/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,31 @@ import { defineConfig } from 'vitepress';
import { nav } from './themeConfig/nav.js';
import { rewrites } from './themeConfig/rewrites.js';

const SITE_TITLE = 'Agoric Documentation';
const SITE_DESCRIPTION =
'The blockchain framework tailored for JavaScript developers.';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have any objections to this copy, but I don't think I'm a good person to approve it.
@sufyaankhan ?


export default defineConfig({
/* --- FOR DEPLOYMENT TO GITHUB PAGES--- */
base: '/', // The base URL the site will be deployed at.
outDir: '../dist',
/* --- HOME PAGE --- */
title: 'Agoric Documentation', // title for the site. prefix for all page titles and displayed in the navbar
description: 'Build, deploy and operate dApps and DeFi markets.', // desc for the site; rendered as a <meta> tag in the page HTML
title: SITE_TITLE, // title for the site. prefix for all page titles and displayed in the navbar
description: SITE_DESCRIPTION, // desc for the site; rendered as a <meta> tag in the page HTML
// Extra tags to inject into the page HTML <head>. You can specify each tag in the form of [tagName, { attrName: attrValue }, innerHTML?].
head: [
[
'meta',
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ property: 'viewport', content: 'width=device-width, initial-scale=1' },
],
['meta', { property: 'og:image', content: '/agoric-og.png' }],
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:title', content: SITE_TITLE }],
['meta', { property: 'og:site_name', content: SITE_TITLE }],
['meta', { property: 'og:url', content: 'https://docs.agoric.com' }],
[
'meta',
{ property: 'twitter:summary_large_image', content: '/agoric-og.png' },
],
['link', { rel: 'icon', href: '/favicon-full.ico' }],
[
Expand Down
Binary file added main/public/agoric-og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading