Skip to content

Commit

Permalink
feat: make leaderboards work
Browse files Browse the repository at this point in the history
  • Loading branch information
zhudotexe committed Feb 20, 2024
1 parent e7825b2 commit 46e45d8
Show file tree
Hide file tree
Showing 12 changed files with 367 additions and 423 deletions.
7 changes: 6 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ preview: html
clean:
rm -rf "$(BUILDDIR)"

leaderboard:
cd ../leaderboard; \
npm run build; \
cp -R dist/. ../docs/_extra/leaderboard;

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
%: Makefile leaderboard
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.. toctree::
:maxdepth: 2

leaderboard
Leaderboard <https://fanoutqa.com/leaderboard>
api_reference
genindex
Paper <https://TODO.TODO>
Expand Down
5 changes: 0 additions & 5 deletions docs/leaderboard.rst

This file was deleted.

15 changes: 13 additions & 2 deletions leaderboard/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FanOutQA - Leaderboard</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit 46e45d8

Please sign in to comment.