Giter Site home page Giter Site logo

basta / gooddata-docs-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gooddata/gooddata-docs-theme

0.0 0.0 0.0 216 KB

GoodData Documentation Theme

License: BSD 3-Clause "New" or "Revised" License

JavaScript 6.74% CSS 2.69% HTML 48.06% SCSS 42.52%

gooddata-docs-theme's Introduction

gdc-docs-theme

GoodData Documentation Theme extends and overrides Docsy theme for Hugo static site generator. It provides ont only GoodData-branded styling but also some additional functionality, like support for custom versioning scheme, translated documentation and Redocly API refernces.

Usage as a Hugo module

To use a Docs project with Hugo modules configured, you don't need anything special. Hugo resolves dependencies upon running the base hugo command.

To update module to a newer version, run hugo mod get -u github.com/gooddata/gooddata-docs-theme.

To run a localhost or deploy preview with unmerged version from a branch, run hugo mod get -u github.com/gooddata/gooddata-docs-theme@branch-name.

Configure Hugo module

This theme contains a config file enabling it to be used as a Hugo submodule resolving dependencies automatically. In order to start using this way of adding dependency, you first need to add following lines to your project config.toml file:

[module]
  proxy = "direct"
  [module.hugoVersion]
    extended = true
    min = "0.81.0"
  [[module.imports]]
    path = "github.com/gooddata/gooddata-docs-theme"
    disable = false
  1. Run hugo mod init repository-path where repository-path is your Github/Gitlab repository URL without protocol. This command will create a necessary go.mod file.
  2. Run hugo mod get -u github.com/gooddata/gooddata-docs-theme which will add this theme as a dependency.
  3. Change theme config to theme = ["github.com/gooddata/gooddata-docs-theme"]

After running steps above you should get go.mod file that looks something like this:

module github.com/gooddata/gooddata-python-sdk

go 1.20

require (
	github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2 // indirect
	github.com/gooddata/gooddata-docs-theme v0.0.0-20230726124044-9bb5d5fc63ba // indirect
	github.com/google/docsy v0.7.1 // indirect
	github.com/google/docsy/dependencies v0.7.1 // indirect
	github.com/twbs/bootstrap v5.3.1+incompatible // indirect
)

In case you switch from Git submodules, you can now remove those using these commands:

git rm docs/themes/docsy
git rm docs/themes/docsy

Usage as a Git submodule

In order to use this theme in an existing repository you should include contents of this repository as a git submodule alongside with the Docsy theme.

Git submodule definition:

[submodule "docs/themes/gdcDocsTheme"]
	path = docs/themes/gdcDocsTheme
	url = https://github.com/gooddata/gdc-docs-theme.git
	branch = basic-theme

Hugo configuration file (config.toml):

theme = ["GDCDocsTheme", "docsy"]

License

(C) 2007-2023 GoodData Corporation

For more information, please see LICENSE.

gooddata-docs-theme's People

Contributors

gdgate avatar czechian avatar basta avatar mara3l avatar petr-klemsinsky avatar mouchar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.