Skip to content

Commit

Permalink
Merge pull request #33 from facebookincubator/arvind/website_design
Browse files Browse the repository at this point in the history
Updating CP4M branding on Docusarus website
  • Loading branch information
anagalingam authored Feb 28, 2024
2 parents 65a45fa + 1fbaae6 commit 8cc089a
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 86 deletions.
13 changes: 0 additions & 13 deletions docs/docs/tutorial-basics/markdown-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,6 @@ Let's see how to [Create a page](./create-a-page.md).

Regular Markdown images are supported.

You can use absolute paths to reference images in the static directory (`static/img/docusaurus.png`):

```md
![Docusaurus logo](/img/docusaurus.png)
```

![Docusaurus logo](/img/docusaurus.png)

You can reference images relative to the current file as well. This is particularly useful to colocate images close to the Markdown files using them:

```md
![Docusaurus logo](./img/docusaurus.png)
```

## Code Blocks

Expand Down
49 changes: 16 additions & 33 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'My Site',
tagline: 'The tagline of my site',
favicon: 'img/favicon.ico',
title: 'Conversational Platform for Marketing (CP4M)',
tagline: 'Integrate your LLM bot with Whatsapp, Messenger, and IG Direct in under an hour!',
favicon: 'CP4M/img/cp4m_logo.png',

// Set the production url of your site here
url: 'https://your-docusaurus-test-site.com',
url: 'https://facebookincubator.github.io/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
baseUrl: '/CP4M/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
organizationName: 'facebookincubator', // Usually your GitHub org/user name.
projectName: 'CP4M', // Usually your repo name.

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
Expand All @@ -39,14 +39,14 @@ const config = {
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
'https://facebookincubator.github.io/CP4M/docs/intro/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
'https://facebookincubator.github.io/CP4M/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand All @@ -58,24 +58,24 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: 'img/docusaurus-social-card.jpg',
image: 'CP4M/img/cp4m_logo.png',
navbar: {
title: 'My Meta Project',
title: 'CP4M',
logo: {
alt: 'My Meta Project Logo',
src: 'img/logo.svg',
alt: 'CP4M Logo',
src: 'CP4M/img/cp4m_logo.png',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Tutorial',
label: 'Get Started',
},
{to: 'blog', label: 'Blog', position: 'left'},
// Please keep GitHub link to the right for consistency.
{
href: 'https://github.com/facebook/docusaurus',
href: 'https://github.com/facebookincubator/CP4M',
label: 'GitHub',
position: 'right',
},
Expand All @@ -97,23 +97,6 @@ const config = {
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
],
},
{
title: 'More',
items: [
Expand All @@ -123,7 +106,7 @@ const config = {
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
href: 'https://github.com/facebookincubator/CP4M',
},
],
},
Expand Down
8 changes: 4 additions & 4 deletions docs/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import styles from './styles.module.css';
const features = [
{
title: 'Easy to Use',
imageUrl: 'img/undraw_docusaurus_mountain.svg',
imageUrl: 'CP4M/img/undraw_docusaurus_mountain.svg',
description: (
<>
Docusaurus was designed from the ground up to be easily installed and
Expand All @@ -28,7 +28,7 @@ const features = [
},
{
title: 'Focus on What Matters',
imageUrl: 'img/undraw_docusaurus_tree.svg',
imageUrl: 'CP4M/img/undraw_docusaurus_tree.svg',
description: (
<>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
Expand All @@ -38,7 +38,7 @@ const features = [
},
{
title: 'Powered by React',
imageUrl: 'img/undraw_docusaurus_react.svg',
imageUrl: 'CP4M/img/undraw_docusaurus_react.svg',
description: (
<>
Extend or customize your website layout by reusing React. Docusaurus can
Expand Down Expand Up @@ -68,7 +68,7 @@ export default function Home() {
const {siteConfig = {}} = context;
return (
<Layout
title={`Hello from ${siteConfig.title}`}
title={`CP4M`}
description="Description will go into a meta tag in <head />">
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
Expand Down
Binary file added docs/static/CP4M/img/cp4m_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file removed docs/static/img/docusaurus-social-card.jpg
Binary file not shown.
Binary file removed docs/static/img/docusaurus.png
Binary file not shown.
Binary file removed docs/static/img/favicon.ico
Binary file not shown.
36 changes: 0 additions & 36 deletions docs/static/img/logo.svg

This file was deleted.

0 comments on commit 8cc089a

Please sign in to comment.