1.0.0-alpha.171 • Published 10 days ago

@acid-info/logos-docusaurus-preset v1.0.0-alpha.171

Weekly downloads
-
License
MIT
Repository
github
Last release
10 days ago

Overview

The Logos Docusaurus preset simplifies the creation of Docusaurus websites with the Logos theme and plugins, tailored to your business unit. This preset offers:

  • A stunning and responsive Logos theme that showcases your brand identity and content.
  • A local search feature for quick and easy information retrieval.
  • An OpenGraph image generator for captivating social media sharing.
  • Pre-configured website setup, including metadata, logos, and favicons for your business unit.

Installation

  1. Install the Logos Docusaurus preset:
yarn add @acid-info/logos-docusaurus-preset
  1. Add the preset to your docusaurus.config.js:
presets: [
  [
    '@acid-info/logos-docusaurus-preset',
    /** @type {import('@acid-info/logos-docusaurus-preset').PluginOptions} */
    ({
      businessUnit: 'Logos',
    }),
  ],
],

Configuration

Website Configuration

This preset provides a set of predefined website settings and assets for each of Logos’ business units. You can select your business unit of choice, and the preset will automatically apply the relevant settings and assets to your website.

To use this feature, add the preset to your docusaurus.config.js file as shown below:

// docusaurus.config.js
[
  '@acid-info/logos-docusaurus-preset',
  /** @type {import('@acid-info/logos-docusaurus-preset').PluginOptions} */
  ({
    businessUnit: 'Logos',
  }),
],

Possible options for businessUnit include:

  • Logos
  • Codex
  • Waku
  • Nimbus
  • Nomos
  • VacResearch
  • Acid.info

Custom Website Settings

The preset overrides certain website settings in your docusaurus.config.js file. These settings include:

title tagline url favicon onBrokenLinks onBrokenMarkdownLinks

By default, the preset sets these values to be specific to your chosen business unit. You can find the default values for each business unit in the site-config directory.

If you wish to retain your own custom settings, you can set the customSiteConfig option to true in your configuration:

// docusaurus.config.js
title: "Custom Title",
tagline: "Custom Tagline",
url: "https://custom.url",
favicon: "img/favicon.ico",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",

presets: [
  [
    '@acid-info/logos-docusaurus-preset',
    /** @type {import('@acid-info/logos-docusaurus-preset').PluginOptions} */
    ({
      businessUnit: 'Logos',
      customSiteConfig: true
    }),
  ],
],

Supported Themes

You have the flexibility to choose the theme that best suits your website. The Logos Docusaurus preset supports the following themes:

default - Logos theme (default and recommended) docusaurus-default - Docusaurus classic theme

Example:

// docusaurus.config.js

presets: [
  [
    '@acid-info/logos-docusaurus-preset',
    /** @type {import('@acid-info/logos-docusaurus-preset').PluginOptions} */
    ({
      businessUnit: 'Logos',
      theme: {
        name: 'default',
        options: {
          // theme options
        }
      }
    }),
  ],
],

For theme configuration options:

OpenGraph Image Generator

The Logos Docusaurus preset includes the Docusaurus OG plugin, which enables you to create visually appealing OpenGraph images for your website's pages. These images are essential for making your content stand out when shared on social media platforms.

To activate the OpenGraph image generator, you can include the og option in the preset settings in your docusaurus.config.js:

// docusaurus.config.js
presets: [
  [
    '@acid-info/logos-docusaurus-preset',
    /** @type {import('@acid-info/logos-docusaurus-preset').PluginOptions} */
    ({
      businessUnit: 'Logos',
      og: {
        path: '_og' // optional; defaults to '_og' (relative to the .docusaurus directory)
      }
    }),
  ],
],

!WARNING The Logos Docusaurus preset includes the Docusaurus OG plugin, which is designed for compatibility with the Logos theme. If you prefer using the Docusaurus classic theme or a custom theme, you'll need to create your own image renderer. For detailed instructions on how to create an image renderer for Docusaurus, please refer to this guide.

!NOTE For in-depth insights into the generation of OpenGraph images, utilizing custom images, and disabling the plugin for specific pages, please visit this page.

Local Search

The Logos Docusaurus preset also includes the @acid-info/docusaurus-search-local plugin, providing an essential feature for your website—local search. With local search, your users can quickly and efficiently find relevant information directly on your website.

You can customize the behavior of the search feature by adding the localSearch option to the preset settings in your docusaurus.config.js:

presets: [
  [
    '@acid-info/logos-docusaurus-preset',
    /** @type {import('@acid-info/logos-docusaurus-preset').PluginOptions} */
    ({
      businessUnit: 'Logos',
      localSearch: {
        singleIndex: true, // optional; defaults to false - if true, user can search across all Docusaurus plugin instances
      }
    }),
  ],
],

To learn more on how the plugin works, please visit the plugin documentation.

Generated Files

Job Openings

Use the generated.jobList option to fetch job openings from the Greenhouse API for a specific job board. Each time you run yarn start or yarn build, the plugin will fetch the latest job openings from the Greenhouse API and generate a JSON file containing the job openings for the specified job board. The generated file will be located at static/generated/jobs.json.

presets: [
  [
    '@acid-info/logos-docusaurus-preset',
    /** @type {import('@acid-info/logos-docusaurus-preset').PluginOptions} */
    ({
      businessUnit: 'Logos',
      generated: {
        jobList: {
          jobBoard: 'your-job-board-id',
        },
      },
    }),
  ],
],

You can import the generated file in your website's code and use it to display the job openings. For example, you can use the JobsPerDepartment component from the Logos theme to display the job openings per department.

Docs Plugin

The Docs plugin (Official Docusaurus Docs Plugin) is enabled by default and simplifies the creation and management of documentation on your website. To disable this plugin, set docs to false in your preset configuration.

For detailed configuration and usage guidance, refer to the official Docusaurus Docs plugin documentation.

Pages Plugin

The Pages plugin (Official Docusaurus Pages Plugin) is enabled by default and offers versatility when creating standalone pages on your website. To disable this plugin, set pages to false in your preset configuration.

For detailed configuration and usage guidance, refer to the official Docusaurus Pages plugin documentation.

Blog Plugin

The Blog plugin (Official Docusaurus Blog Plugin) is enabled by default, making it easy to add a blog section to your website. To disable this plugin, set blog to false in your preset configuration.

For configuration and usage instructions, refer to the official Docusaurus Blog plugin documentation.

1.0.0-alpha.168

11 days ago

1.0.0-alpha.169

11 days ago

1.0.0-alpha.171

10 days ago

1.0.0-alpha.170

10 days ago

1.0.0-alpha.167

14 days ago

1.0.0-alpha.166

14 days ago

1.0.0-alpha.165

14 days ago

1.0.0-alpha.164

16 days ago

1.0.0-alpha.163

16 days ago

1.0.0-alpha.159

1 month ago

1.0.0-alpha.160

1 month ago

1.0.0-alpha.162

1 month ago

1.0.0-alpha.161

1 month ago

1.0.0-alpha.157

1 month ago

1.0.0-alpha.156

1 month ago

1.0.0-alpha.158

1 month ago

1.0.0-alpha.155

1 month ago

1.0.0-alpha.153

1 month ago

1.0.0-alpha.152

1 month ago

1.0.0-alpha.151

1 month ago

1.0.0-alpha.154

1 month ago

1.0.0-alpha.150

1 month ago

1.0.0-alpha.146

2 months ago

1.0.0-alpha.145

2 months ago

1.0.0-alpha.149

2 months ago

1.0.0-alpha.148

2 months ago

1.0.0-alpha.147

2 months ago

1.0.0-alpha.144

2 months ago

1.0.0-alpha.143

3 months ago

1.0.0-topic-cta.1

3 months ago

1.0.0-alpha.142

3 months ago

1.0.0-alpha.141

3 months ago

1.0.0-alpha.140

3 months ago

1.0.0-alpha.138

4 months ago

1.0.0-alpha.135

5 months ago

1.0.0-alpha.137

5 months ago

1.0.0-alpha.136

5 months ago

1.0.0-alpha.134

5 months ago

1.0.0-alpha.131

5 months ago

1.0.0-alpha.133

5 months ago

1.0.0-alpha.132

5 months ago

1.0.0-alpha.130

5 months ago

1.0.0-alpha.129

5 months ago

1.0.0-alpha.127

5 months ago

1.0.0-alpha.119

6 months ago

1.0.0-alpha.120

6 months ago

1.0.0-alpha.122

6 months ago

1.0.0-alpha.121

6 months ago

1.0.0-alpha.126

5 months ago

1.0.0-alpha.125

5 months ago

1.0.0-alpha.118

6 months ago

1.0.0-alpha.113

6 months ago

1.0.0-alpha.112

6 months ago

1.0.0-alpha.111

6 months ago

1.0.0-alpha.117

6 months ago

1.0.0-alpha.116

6 months ago

1.0.0-alpha.115

6 months ago

1.0.0-alpha.114

6 months ago

1.0.0-alpha.109

7 months ago

1.0.0-alpha.108

7 months ago

1.0.0-alpha.110

7 months ago

1.0.0-alpha.107

7 months ago

1.0.0-alpha.102

7 months ago

1.0.0-alpha.100

8 months ago

1.0.0-alpha.106

7 months ago

1.0.0-alpha.105

7 months ago

1.0.0-alpha.104

7 months ago

1.0.0-alpha.63

10 months ago

1.0.0-alpha.65

10 months ago

1.0.0-alpha.64

10 months ago

1.0.0-alpha.67

10 months ago

1.0.0-alpha.66

10 months ago

1.0.0-alpha.69

10 months ago

1.0.0-alpha.68

10 months ago

1.0.0-alpha.96

10 months ago

1.0.0-alpha.95

10 months ago

1.0.0-alpha.98

8 months ago

1.0.0-alpha.97

10 months ago

1.0.0-alpha.92

10 months ago

1.0.0-alpha.91

10 months ago

1.0.0-alpha.94

10 months ago

1.0.0-alpha.93

10 months ago

1.0.0-alpha.99

8 months ago

1.0.0-alpha.74

10 months ago

1.0.0-alpha.73

10 months ago

1.0.0-alpha.75

10 months ago

1.0.0-alpha.70

10 months ago

1.0.0-alpha.72

10 months ago

1.0.0-alpha.71

10 months ago

1.0.0-alpha.78

10 months ago

1.0.0-alpha.77

10 months ago

1.0.0-alpha.79

10 months ago

1.0.0-alpha.90

10 months ago

1.0.0-alpha.85

10 months ago

1.0.0-alpha.84

10 months ago

1.0.0-alpha.86

10 months ago

1.0.0-alpha.81

10 months ago

1.0.0-alpha.80

10 months ago

1.0.0-alpha.83

10 months ago

1.0.0-alpha.82

10 months ago

1.0.0-alpha.89

10 months ago

1.0.0-alpha.88

10 months ago

1.0.0-alpha.62

11 months ago

1.0.0-alpha.19

11 months ago

1.0.0-alpha.9

11 months ago

1.0.0-alpha.8

11 months ago

1.0.0-alpha.52

11 months ago

1.0.0-alpha.7

11 months ago

1.0.0-alpha.51

11 months ago

1.0.0-alpha.6

11 months ago

1.0.0-alpha.54

11 months ago

1.0.0-alpha.10

11 months ago

1.0.0-alpha.5

11 months ago

1.0.0-alpha.53

11 months ago

1.0.0-alpha.4

11 months ago

1.0.0-alpha.3

11 months ago

1.0.0-alpha.2

11 months ago

1.0.0-alpha.50

11 months ago

1.0.0-alpha.1

11 months ago

1.0.0-alpha.0

12 months ago

1.0.0-alpha.16

11 months ago

1.0.0-alpha.59

11 months ago

1.0.0-alpha.15

11 months ago

1.0.0-alpha.17

11 months ago

1.0.0-alpha.56

11 months ago

1.0.0-alpha.55

11 months ago

1.0.0-alpha.11

11 months ago

1.0.0-alpha.58

11 months ago

1.0.0-alpha.14

11 months ago

1.0.0-alpha.57

11 months ago

1.0.0-alpha.13

11 months ago

1.0.0-alpha.21

11 months ago

1.0.0-alpha.20

11 months ago

1.0.0-alpha.60

11 months ago

1.0.0-alpha.27

11 months ago

1.0.0-alpha.26

11 months ago

1.0.0-alpha.29

11 months ago

1.0.0-alpha.28

11 months ago

1.0.0-alpha.23

11 months ago

1.0.0-alpha.22

11 months ago

1.0.0-alpha.25

11 months ago

1.0.0-alpha.24

11 months ago

1.0.0-alpha.30

11 months ago

1.0.0-alpha.32

11 months ago

1.0.0-alpha.31

11 months ago

1.0.0-alpha.38

11 months ago

1.0.0-alpha.37

11 months ago

1.0.0-alpha.39

11 months ago

1.0.0-alpha.34

11 months ago

1.0.0-alpha.33

11 months ago

1.0.0-alpha.36

11 months ago

1.0.0-alpha.35

11 months ago

1.0.0-alpha.40

11 months ago

1.0.0-alpha.43

11 months ago

1.0.0-alpha.49

11 months ago

1.0.0-alpha.48

11 months ago

1.0.0-alpha.45

11 months ago

1.0.0-alpha.44

11 months ago

1.0.0-alpha.47

11 months ago

1.0.0-alpha.46

11 months ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago