Skip to content

Commit

Permalink
docs: replace documentation icon and primary color (langflow-ai#4582)
Browse files Browse the repository at this point in the history
* Updated primary color to be pink

* Updated primary color and header logo

* Updated favico

* Updated icon on Mendable search for docs

* Yarn.lock update

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]>
  • Loading branch information
lucaseduoli and ogabrielluiz authored Nov 14, 2024
1 parent 5e69628 commit 2f96dbb
Show file tree
Hide file tree
Showing 7 changed files with 552 additions and 1,978 deletions.
1 change: 1 addition & 0 deletions docs/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
:root {
--ifm-background-color: var(--token-primary-bg-c);
--ifm-color-primary: hsla(330, 81%, 60%, 1);
--ifm-navbar-link-hover-color: initial;
--ifm-navbar-padding-vertical: 0;
--ifm-navbar-item-padding-vertical: 0;
Expand Down
39 changes: 24 additions & 15 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const { remarkCodeHike } = require("@code-hike/mdx");
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Langflow Documentation",
tagline: "Langflow is a low-code app builder for RAG and multi-agent AI applications.",
tagline:
"Langflow is a low-code app builder for RAG and multi-agent AI applications.",
favicon: "img/favicon.ico",
url: "https://docs.langflow.org",
baseUrl: "/",
Expand Down Expand Up @@ -49,7 +50,7 @@ const config = {
sitemap: {
// https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-sitemap
// https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap
lastmod: 'datetime',
lastmod: "datetime",
changefreq: null,
priority: null,
},
Expand Down Expand Up @@ -79,28 +80,36 @@ const config = {
["docusaurus-node-polyfills", { excludeAliases: ["console"] }],
"docusaurus-plugin-image-zoom",
[
'@docusaurus/plugin-client-redirects',
"@docusaurus/plugin-client-redirects",
{
redirects: [
{
to: '/',
from: ['/whats-new-a-new-chapter-langflow', '/👋 Welcome-to-Langflow'],
to: "/",
from: [
"/whats-new-a-new-chapter-langflow",
"/👋 Welcome-to-Langflow",
],
},
{
to: '/getting-started-installation',
from: '/getting-started-common-installation-issues',
to: "/getting-started-installation",
from: "/getting-started-common-installation-issues",
},
{
to: '/workspace-overview',
from: ['/365085a8-a90a-43f9-a779-f8769ec7eca1', '/My-Collection', '/workspace', '/settings-project-general-settings'],
to: "/workspace-overview",
from: [
"/365085a8-a90a-43f9-a779-f8769ec7eca1",
"/My-Collection",
"/workspace",
"/settings-project-general-settings",
],
},
{
to: '/components-overview',
from: '/components',
to: "/components-overview",
from: "/components",
},
{
to: '/configuration-global-variables',
from: '/settings-global-variables',
to: "/configuration-global-variables",
from: "/settings-global-variables",
},
// add more redirects like this
// {
Expand Down Expand Up @@ -128,10 +137,10 @@ const config = {
({
navbar: {
hideOnScroll: true,
title: "Langflow",
logo: {
alt: "Langflow",
src: "/img/logo.svg",
src: "img/langflow-logo-black.svg",
srcDark: "img/langflow-logo-white.svg",
},
items: [
// right
Expand Down
3 changes: 2 additions & 1 deletion docs/src/theme/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export default function FooterWrapper(props) {
const iconSpan1 = React.createElement(
"img",
{
src: "/img/logo.svg",
src: "/img/langflow-icon-black-transparent.svg",
srcDark: "",
style: { width: "40px" },
},
null
Expand Down
5 changes: 5 additions & 0 deletions docs/static/img/langflow-icon-black-transparent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions docs/static/img/langflow-logo-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2f96dbb

Please sign in to comment.