finalized Documentation
This commit is contained in:
parent
9f4b49ca4f
commit
cc4a11e47e
@ -6,20 +6,20 @@ local types = {
|
|||||||
|
|
||||||
local Entry = {}
|
local Entry = {}
|
||||||
|
|
||||||
Entry.getValue = function(self:typeof(Entry), value:string):any
|
Entry.getValue = function(self:typeof(Entry), key:string):any
|
||||||
if not value then return nil end
|
if not key then return nil end
|
||||||
return self._entryData[value]
|
return self._entryData[key]
|
||||||
end
|
end
|
||||||
|
|
||||||
Entry.getValues = function(self:typeof(Entry)):typeof(types.EntryData)
|
Entry.getValues = function(self:typeof(Entry)):typeof(types.EntryData)
|
||||||
return self._entryData
|
return self._entryData
|
||||||
end
|
end
|
||||||
|
|
||||||
Entry.updateValues = function(self:typeof(Entry), values:typeof(types.EntryData)):number
|
Entry.updateValues = function(self:typeof(Entry), data:typeof(types.EntryData)):number
|
||||||
local result = Utils.makeHTTPRequest("entry", "PUT", "https://api.marcsync.dev/v0/entries/"..self._tableId, {["filters"]={["_id"]=self._objectId},["data"]=values}, self._accessToken);
|
local result = Utils.makeHTTPRequest("entry", "PUT", "https://api.marcsync.dev/v0/entries/"..self._tableId, {["filters"]={["_id"]=self._objectId},["data"]=data}, self._accessToken);
|
||||||
|
|
||||||
if result["success"] and result["modifiedEntries"] and result["modifiedEntries"] > 0 then
|
if result["success"] and result["modifiedEntries"] and result["modifiedEntries"] > 0 then
|
||||||
for i,v in pairs(values) do
|
for i,v in pairs(data) do
|
||||||
self._entryData[i] = v
|
self._entryData[i] = v
|
||||||
end
|
end
|
||||||
elseif not result["success"] then
|
elseif not result["success"] then
|
||||||
|
@ -51,13 +51,17 @@ const config = {
|
|||||||
themeConfig:
|
themeConfig:
|
||||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||||
({
|
({
|
||||||
|
colorMode: {
|
||||||
|
defaultMode: 'dark'
|
||||||
|
},
|
||||||
// Replace with your project's social card
|
// Replace with your project's social card
|
||||||
image: 'img/docusaurus-social-card.jpg',
|
image: 'img/docusaurus-social-card.jpg',
|
||||||
navbar: {
|
navbar: {
|
||||||
title: 'Roblox Documentation',
|
title: 'Roblox Documentation',
|
||||||
logo: {
|
logo: {
|
||||||
alt: 'MarcSync Logo',
|
alt: 'MarcSync Logo',
|
||||||
src: 'img/logo.svg',
|
src: 'img/logo.png',
|
||||||
|
srcDark: 'img/logo-dark.png',
|
||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import clsx from 'clsx';
|
|
||||||
import styles from './styles.module.css';
|
|
||||||
|
|
||||||
const FeatureList = [
|
|
||||||
{
|
|
||||||
title: 'Easy to Use',
|
|
||||||
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
|
|
||||||
description: (
|
|
||||||
<>
|
|
||||||
Docusaurus was designed from the ground up to be easily installed and
|
|
||||||
used to get your website up and running quickly.
|
|
||||||
</>
|
|
||||||
),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Focus on What Matters',
|
|
||||||
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
|
|
||||||
description: (
|
|
||||||
<>
|
|
||||||
Docusaurus lets you focus on your docs, and we'll do the chores. Go
|
|
||||||
ahead and move your docs into the <code>docs</code> directory.
|
|
||||||
</>
|
|
||||||
),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Powered by React',
|
|
||||||
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
|
|
||||||
description: (
|
|
||||||
<>
|
|
||||||
Extend or customize your website layout by reusing React. Docusaurus can
|
|
||||||
be extended while reusing the same header and footer.
|
|
||||||
</>
|
|
||||||
),
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
function Feature({Svg, title, description}) {
|
|
||||||
return (
|
|
||||||
<div className={clsx('col col--4')}>
|
|
||||||
<div className="text--center">
|
|
||||||
<Svg className={styles.featureSvg} role="img" />
|
|
||||||
</div>
|
|
||||||
<div className="text--center padding-horiz--md">
|
|
||||||
<h3>{title}</h3>
|
|
||||||
<p>{description}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function HomepageFeatures() {
|
|
||||||
return (
|
|
||||||
<section className={styles.features}>
|
|
||||||
<div className="container">
|
|
||||||
<div className="row">
|
|
||||||
{FeatureList.map((props, idx) => (
|
|
||||||
<Feature key={idx} {...props} />
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
);
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
.features {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
padding: 2rem 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.featureSvg {
|
|
||||||
height: 200px;
|
|
||||||
width: 200px;
|
|
||||||
}
|
|
@ -1,41 +1,12 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import clsx from 'clsx';
|
|
||||||
import Link from '@docusaurus/Link';
|
|
||||||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
||||||
import Layout from '@theme/Layout';
|
|
||||||
import HomepageFeatures from '@site/src/components/HomepageFeatures';
|
|
||||||
|
|
||||||
import styles from './index.module.css';
|
|
||||||
|
|
||||||
function HomepageHeader() {
|
|
||||||
const {siteConfig} = useDocusaurusContext();
|
|
||||||
return (
|
|
||||||
<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="button button--secondary button--lg"
|
|
||||||
to="/docs/intro">
|
|
||||||
Docusaurus Tutorial - 5min ⏱️
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const {siteConfig} = useDocusaurusContext();
|
|
||||||
return (
|
return (
|
||||||
<Layout
|
<script>
|
||||||
title={`Hello from ${siteConfig.title}`}
|
{
|
||||||
description="Description will go into a meta tag in <head />">
|
window.location.href = "./docs/intro"
|
||||||
<HomepageHeader />
|
}
|
||||||
<main>
|
</script>
|
||||||
<HomepageFeatures />
|
|
||||||
</main>
|
|
||||||
</Layout>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 4.2 KiB |
BIN
website/docs-marcsync-dev/static/img/logo-dark.png
Normal file
BIN
website/docs-marcsync-dev/static/img/logo-dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 142 KiB |
BIN
website/docs-marcsync-dev/static/img/logo.png
Normal file
BIN
website/docs-marcsync-dev/static/img/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 84 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 6.3 KiB |
Loading…
x
Reference in New Issue
Block a user