Skip to content

Add llm-full.txt to homepage #1326

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

Open
wants to merge 4 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
18 changes: 9 additions & 9 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import NewsContainer from "../components/layouts/newsContainer";
import InlineCalloutContainer from "../components/layouts/inlineCalloutContainer";
import TileContainer from "../components/layouts/tileContainer";
import RefCard from "../components/blocks/refCard";
import Tip from "../components/blocks/tip";

import { H1, H2 } from "../components/blocks/headers";
import NewsFeed from "../components/blocks/newsFeed";
Expand Down Expand Up @@ -114,7 +115,7 @@ export default function Home({ window, menu }) {
<section className={styles.Container}>
<SideBar menu={menu} slug={[]} />
<section className={styles.InnerContainer}>
<article>
<article className={"homepage"}>
<H1>Streamlit documentation</H1>
<p>
<a href="https://www.streamlit.io">Streamlit</a> is an open-source
Expand All @@ -127,14 +128,13 @@ export default function Home({ window, menu }) {

<SummaryTiles />

{/* <H2 className='no-b-m'>What's new</H2>

<TileContainer>
<Tile size="half" background="unset" color="unset" dark={{ background: "unset", color: 'white', border_color: 'gray-90' }} border_color="gray-40" img="/logo.svg" title="Feature title" text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eleifend a facilisis sagittis, vitae nibh massa in facilisis et. Pretium eget non cursus purus tempus porta sodales." link="/tutorials/get-started" />
<Tile size="half" background="unset" color="unset" dark={{ background: "unset", color: 'white', border_color: 'gray-90' }} border_color="gray-40" icon="visibility" title="Feature title" text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eleifend a facilisis sagittis, vitae nibh massa in facilisis et. Pretium eget non cursus purus tempus porta sodales." link="/tutorials/get-started" />
<Tile size="half" background="unset" color="unset" dark={{ background: "unset", color: 'white', border_color: 'gray-90' }} border_color="gray-40" icon="edit" title="Feature title" text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eleifend a facilisis sagittis, vitae nibh massa in facilisis et. Pretium eget non cursus purus tempus porta sodales." link="/tutorials/get-started" />
<Tile size="half" background="unset" color="unset" dark={{ background: "unset", color: 'white', border_color: 'gray-90' }} border_color="gray-40" img="/logo.svg" title="Feature title" text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eleifend a facilisis sagittis, vitae nibh massa in facilisis et. Pretium eget non cursus purus tempus porta sodales." link="/tutorials/get-started" />
</TileContainer> */}
<Tip>
<p>
Point your coding assistant to{" "}
<a href="/llms-full.txt">llms-full.txt</a> to include the
Streamlit docs in your context!
</p>
</Tip>

<H2>How to use our docs</H2>
<InlineCalloutContainer>
Expand Down
13 changes: 13 additions & 0 deletions styles/text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,16 @@ tt.docutils.literal {
div.code-desc {
@apply mb-4 text-gray-90 dark:text-gray-40;
}

/* Links on the homepage */
.homepage p a,
.homepage ol li a,
.homepage ul li a {
@apply border-b border-b-gray-90 hover:border-red-60 hover:opacity-80;
}

.dark .homepage p a,
.dark .homepage ol li a,
.dark .homepage ul li a {
@apply border-b-white !important;
}