Skip to content

Commit

Permalink
Add docs configuration and visualization #106 (#114)
Browse files Browse the repository at this point in the history
* feat: generate markdown and page config docs

* fix: remove default word

* chore: move _config.yml to docs

* chore: update lock file
  • Loading branch information
luizstacio authored Feb 8, 2022
1 parent 69d72c9 commit 0d1a623
Show file tree
Hide file tree
Showing 35 changed files with 12,861 additions and 8,546 deletions.
12 changes: 4 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ module.exports = {
// https://github.com/typescript-eslint/typescript-eslint/issues/251#issuecomment-567365174
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint', 'jsdoc'],
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:eslint-comments/recommended',
'plugin:jsdoc/recommended',
'plugin:@typescript-eslint/recommended',
],
settings: {
jsdoc: {
Expand Down Expand Up @@ -44,12 +44,8 @@ module.exports = {
'@typescript-eslint/consistent-type-imports': 2,
'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
'eslint-comments/no-unused-disable': 'error',
'jsdoc/require-returns': 'off',
'jsdoc/require-returns-type': 'off',
'jsdoc/require-param': 'off',
'jsdoc/require-param-type': 'off',
'jsdoc/no-types': 'off',
"import/prefer-default-export": "off",
'import/prefer-default-export': 'off',
'tsdoc/syntax': 'warn',
},
// Disable no-unused-expressions to allow chai 'expect' expressions in testing
overrides: [
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,7 @@ dist
# OS metadata
.DS_Store
Thumbs.db

## Jekyll & gh-pages
.jekyll-cache
_site/
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
# fuels-ts
![Fuels-ts SDK logo](./docs/assets/fuels-ts-logo.png)

fuels-ts is a library for interacting with Fuel v2. With fuels-ts you can:
**fuels-ts** is a library for interacting with **Fuel v2**. With fuels-ts you can:

# Table of contents

- [SDK documentation](./docs/packages)
- [Features](#features)
- [Usage](#usage)
- [Installation](#installation)
- [Calling Contracts](#calling-contracts)
- [Deploying Contracts](#deploying-contracts)
- [Generating Contract Types](#generating-contract-types)
- [Contributing](#contributing)
- [Setup](#setup)
- [Testing](#testing)
- [License](#license)

## Features

- [x] Deploy and call contracts
- [x] Generate contract types with TypeChain
Expand Down
30 changes: 30 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#Configuration
remote_theme: pmarsceill/just-the-docs
exclude: ["packages/README.md"]

# Set a path/url to a logo that will be displayed instead of the title
title: "Fuels-ts"
logo: "./assets/fuels-ts-logo.png"

# Features
search_enabled: true

search:
heading_level: 6
previews: 3
preview_words_before: 5
preview_words_after: 10
tokenizer_separator: /[\s/]+/
rel_url: false
button: false

heading_anchors: true

# Theme
color_scheme: "fuel-dark"

aux_links:
"GitHub":
- "//github.com/FuelLabs/fuels-ts"

footer_content: ""
19 changes: 19 additions & 0 deletions docs/_sass/color_schemes/fuel-dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
$green-000: #58c09b;

$body-background-color: $grey-dk-300;
$sidebar-color: $grey-dk-300;
$border-color: $grey-dk-200;

$body-text-color: $grey-lt-300;
$body-heading-color: $grey-lt-000;
$nav-child-link-color: $grey-dk-000;
$search-result-preview-color: $grey-dk-000;

$link-color: $green-000;
$btn-primary-color: $green-000;
$base-button-color: $grey-dk-250;

$code-background-color: $grey-dk-250;
$search-background-color: $grey-dk-250;
$table-background-color: $grey-dk-250;
$feedback-color: darken($sidebar-color, 3%);
7 changes: 7 additions & 0 deletions docs/_sass/custom/custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.search-input {
color: $grey-lt-300;
}

.nav-list .nav-list-item > .nav-list .nav-list-item .nav-list-link.active {
color: $grey-lt-300;
}
Binary file added docs/assets/fuels-ts-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: default
title: Home
nav_order: 0
---

![Fuels-ts SDK logo](./assets/fuels-ts-logo.png)

# Fuel TypeScript SDK

`fuels-ts` is a library for interacting with [Fuel v2](https://fuel.network/)
14 changes: 14 additions & 0 deletions docs/packages/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: default
title: "fuels-ts"
has_children: true
has_toc: false
nav_order: 1
---

# fuels-ts

## Modules

- [@fuel-ts/providers](fuel-ts-providers/index.md)
- [@fuel-ts/wallet](fuel-ts-wallet/index.md)
Loading

0 comments on commit 0d1a623

Please sign in to comment.