Skip to content

Commit 0d8f029

Browse files
committed
add instructions for project page
1 parent 0bbb24f commit 0d8f029

File tree

5 files changed

+451
-11
lines changed

5 files changed

+451
-11
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,15 @@ News should be inserted here
2727
https://github.com/Graph-and-Geometric-Learning/Graph-and-Geometric-Learning.github.io/blob/d294a5bb559925e109aa7117faa575f9543da622/app/page.tsx#L44-L46
2828

2929
The news item should be wrapped by `<li>...</li>`. Wrap the text with `<Link href="link.com">...</Link>` if you want to add a link to your text. Check examples in the same file for reference.
30+
31+
32+
## Project Page
33+
To set up a project page, we support [MDX](https://mdxjs.com/), which is a superset of markdown that lets you write [JSX](https://react.dev/learn/writing-markup-with-jsx) directly in your markdown files. That is to say, you can write your project page in markdown and include any html elements. We also pre-defined some convenient element for you to use. (e.g. AuthorList).
34+
35+
**Step**
36+
1. Create a folder of your project under `app/projects`.
37+
2. Create a `page.mdx` file under the created folder. This is the main file that contains your page content. Assets (e.g. images) should be uploaded to your project folder as well.
38+
3. Update the `page`key of your publication in `config/publications.ts` with the name of your folder.
39+
40+
41+
Find an example in `app/projects/mage`.

app/publications/page.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@ import { publications } from "@/config/publications";
77
import { PublicationTags } from "@/components/tag";
88

99
function Links({ paper, code, page }: { paper: string, code: string | null; page: string | null }) {
10-
if (code === null) {
11-
return <Link href={paper}>paper</Link>;
12-
} else {
13-
return <> <Link href={paper}>paper</Link> / <Link href={code}>code</Link> </>
10+
let links = [];
11+
if (paper !== null) {
12+
links.push(<Link href={paper}>paper</Link>);
1413
}
14+
if (code !== null) {
15+
links.push(<Link href={code}>code</Link>)
16+
}
17+
if (page !== null) {
18+
let page_link = "projects/" + page;
19+
links.push(<Link href={page_link}>page</Link>)
20+
}
21+
return <>{links.reduce((prev, curr) => <>{prev} / {curr}</>)}</>
1522
}
1623

1724
export default function PublicationsPage() {

config/publications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const publications = [
107107
title: "Explaining Graph Neural Networks via Structure-aware Interaction Index",
108108
authors: "Ngoc Bui, Hieu Trung Nguyen, Viet Anh Nguyen, Rex Ying",
109109
venue: "ICML 2024",
110-
page: null,
110+
page: "mage",
111111
code: "https://github.com/ngocbh/MAGE",
112112
paper: "https://arxiv.org/abs/2405.14352",
113113
abstract: "We introduces a novel interaction index, namely the Myerson-Taylor interaction index, that internalizes the graph structure into attributing the node values of Shapley value and the interaction values among nodes. We prove that that the Myerson-Taylor index is the unique one that satisfies a system of five natural axioms accounting for graph structure and high-order interaction among nodes. We propose MAGE, a new graph explainer that uses the second-order Myerson-Taylor index to identify the most important motifs influencing the model prediction.",

0 commit comments

Comments
 (0)