Skip to content

Commit

Permalink
css and navbar changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBelmes committed Dec 5, 2023
1 parent 421cb5c commit 14d428c
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 43 deletions.
5 changes: 5 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ const config: Config = {
label: 'Docs',
position: 'left'
},
{
href: 'https://etherealengine.github.io/etherealengine-docs/typedoc',
label: 'API',
position: 'left'
},
{
href: 'https://etherealengine.org/',
label: 'Ethereal Engine',
Expand Down
4 changes: 0 additions & 4 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
padding: 0 var(--ifm-pre-padding);
}

.button.button--secondary.button--outline:not(.button--active):not(:hover) {
color: #ffffff !important;
}

.markdown a {
text-decoration: underline;
font-weight: 500;
Expand Down
2 changes: 2 additions & 0 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
text-align: center;
position: relative;
overflow: hidden;
background-color: var(--ifm-color-primary-contrast-background);
color: var(--ifm-color-primary);
}

@media screen and (max-width: 996px) {
Expand Down
65 changes: 34 additions & 31 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import clsx from 'clsx'
import React from 'react'

import styles from './index.module.css'
import { Redirect } from 'react-router-dom'

const features = [
{
Expand Down Expand Up @@ -53,35 +54,37 @@ function Feature({ imageUrl, title, description }) {
*/
export default function Home() {
const { siteConfig } = useDocusaurusContext()
return (
<Layout title={`${siteConfig.title}`} description="Description will go into a meta tag in <head />">
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className={clsx('button button--outline button--secondary button--lg', styles.getStarted)}
to={useBaseUrl('docs/')}
>
Get Started
</Link>
</div>
</div>
</header>
<main>
{features && features.length > 0 && (
<section className={styles.features}>
<div className="container">
<div className="row">
{features.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</section>
)}
</main>
</Layout>
)
const path = siteConfig.baseUrl+'docs'
return <Redirect to={path} />;
// return (
// <Layout title={`${siteConfig.title}`} description="Description will go into a meta tag in <head />">
// <header className={clsx('hero hero--primary', styles.heroBanner)}>
// <div className="container">
// <h1 className="hero__title">{siteConfig.title}</h1>
// <p className="hero__subtitle">{siteConfig.tagline}</p>
// <div className={styles.buttons}>
// <Link
// className={clsx('button button--outline button--secondary button--lg', styles.getStarted)}
// to={useBaseUrl('docs/')}
// >
// Get Started
// </Link>
// </div>
// </div>
// </header>
// <main>
// {features && features.length > 0 && (
// <section className={styles.features}>
// <div className="container">
// <div className="row">
// {features.map((props, idx) => (
// <Feature key={idx} {...props} />
// ))}
// </div>
// </div>
// </section>
// )}
// </main>
// </Layout>
// )
}
7 changes: 0 additions & 7 deletions src/pages/markdown-page.md

This file was deleted.

2 changes: 1 addition & 1 deletion typedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const dotenv = require('dotenv').config({
path: appRootPath.path + '/.env.local'
})

const typedoc = spawn("npx", ["typedoc", process.env.ENGINE_PATH, "--options", `${process.env.ENGINE_PATH}/typedoc.json`, "--out", "./typedoc"])
const typedoc = spawn("npx", ["typedoc", process.env.ENGINE_PATH, "--options", `${process.env.ENGINE_PATH}/typedoc.json`, "--out", "./build/typedoc"])

typedoc.stdout.on("data", data => {
console.log(`stdout: ${data}`);
Expand Down

0 comments on commit 14d428c

Please sign in to comment.