Skip to content

Commit

Permalink
chore(docs): fixing indentation of typedoc and TOC depth/padding (#8657)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta authored Nov 3, 2024
1 parent 2593a1f commit b06c5ef
Show file tree
Hide file tree
Showing 21 changed files with 37 additions and 40 deletions.
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ markdown_extensions:
- pymdownx.tilde
- toc:
permalink: true
toc_depth: 5
- markdown_include.include:
base_path : './docs/'
encoding : 'utf-8'
# headingOffset : 2
inheritHeadingDepth : true

plugins:
- search
Expand Down
2 changes: 1 addition & 1 deletion pages/appimage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ The top-level [appImage](configuration.md#appImage) key contains set of options

## Configuration

{!./app-builder-lib.Interface.AppImageOptions.md!}
{!./app-builder-lib.Interface.AppImageOptions.md!}
2 changes: 1 addition & 1 deletion pages/appx.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ If you use self-signed certificate, you need to add it to "Trusted People". See

## Configuration

{!./app-builder-lib.Interface.AppXOptions.md!}
{!./app-builder-lib.Interface.AppXOptions.md!}
2 changes: 1 addition & 1 deletion pages/auto-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,4 @@ Emitted on progress.
## UpdateInfo
{!./electron-updater.Interface.UpdateInfo.md!}
{!./electron-updater.Interface.UpdateInfo.md!}
10 changes: 6 additions & 4 deletions pages/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Env file `electron-builder.env` in the current dir ([example](https://github.com

### Common Configuration

{!./app-builder-lib.Interface.CommonConfiguration.md!}
{!./app-builder-lib.Interface.CommonConfiguration.md!}

---

Expand All @@ -46,12 +46,12 @@ Following options can be set also per platform (top-level keys [mac](mac.md), [l

## Base Configuration

{!./app-builder-lib.Interface.PlatformSpecificBuildOptions.md!}
{!./app-builder-lib.Interface.PlatformSpecificBuildOptions.md!}

## Metadata
Some standard fields should be defined in the `package.json`.

{!./app-builder-lib.Interface.Metadata.md!}
{!./app-builder-lib.Interface.Metadata.md!}

## Proton Native

Expand All @@ -61,4 +61,6 @@ Currently, only macOS and Linux supported.
## Build Version Management
`CFBundleVersion` (macOS) and `FileVersion` (Windows) will be set automatically to `version.build_number` on CI server (Travis, AppVeyor, CircleCI and Bamboo supported).

{!./hooks.md!}
## Build Hooks

{!./hooks.md!}
4 changes: 2 additions & 2 deletions pages/contents.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## File Contents

#{!./app-builder-lib.Interface.FilesBuildOptions.md!}
{!./app-builder-lib.Interface.FilesBuildOptions.md!}

## FileSet Configuration

#{!./app-builder-lib.Interface.FileSet.md!}
{!./app-builder-lib.Interface.FileSet.md!}
2 changes: 1 addition & 1 deletion pages/dmg.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ The contain file should have the following format:

## Configuration

{!./app-builder-lib.Interface.DmgOptions.md!}
{!./app-builder-lib.Interface.DmgOptions.md!}
6 changes: 3 additions & 3 deletions pages/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ The top-level [linux](configuration.md#linux) key contains set of options instru

## Base Linux Configuration

{!./app-builder-lib.Interface.LinuxConfiguration.md!}
{!./app-builder-lib.Interface.LinuxConfiguration.md!}

## Debian Package Options

The top-level [deb](configuration.md#deb) key contains set of options instructing electron-builder on how it should build Debian package.

{!./app-builder-lib.Interface.DebOptions.md!}
{!./app-builder-lib.Interface.DebOptions.md!}

All [LinuxTargetSpecificOptions](linux.md#linuxtargetspecificoptions-apk-freebsd-pacman-p5p-and-rpm-options) can be also specified in the `deb` to customize Debian package.

## `LinuxTargetSpecificOptions` APK, FreeBSD, Pacman, P5P and RPM Options

The top-level `apk`, `freebsd`, `pacman`, `p5p` and `rpm` keys contains set of options instructing electron-builder on how it should build corresponding Linux target.

{!./app-builder-lib.Interface.LinuxTargetSpecificOptions.md!}
{!./app-builder-lib.Interface.LinuxTargetSpecificOptions.md!}

4 changes: 2 additions & 2 deletions pages/mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ The top-level [mac](configuration.md#mac) key contains set of options instructin

## Configuration

{!./app-builder-lib.Interface.MacConfiguration.md!}
{!./app-builder-lib.Interface.MacConfiguration.md!}

## Notarize Configuration

{!./app-builder-lib.Interface.NotarizeNotaryOptions.md!}
{!./app-builder-lib.Interface.NotarizeNotaryOptions.md!}
2 changes: 1 addition & 1 deletion pages/mas.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ Inherits [macOS options](mac.md).

## Configuration

{!./app-builder-lib.Interface.MasConfiguration.md!}
{!./app-builder-lib.Interface.MasConfiguration.md!}

2 changes: 1 addition & 1 deletion pages/msi-wrapped.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## Configuration

{!./app-builder-lib.Interface.MsiWrappedOptions.md!}
{!./app-builder-lib.Interface.MsiWrappedOptions.md!}
2 changes: 1 addition & 1 deletion pages/msi.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## Configuration

{!./app-builder-lib.Interface.MsiOptions.md!}
{!./app-builder-lib.Interface.MsiOptions.md!}
2 changes: 1 addition & 1 deletion pages/nsis.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ For portable app, following environment variables are available:

## Configuration

{!./app-builder-lib.Interface.NsisOptions.md!}
{!./app-builder-lib.Interface.NsisOptions.md!}
2 changes: 1 addition & 1 deletion pages/pkg.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ The top-level [pkg](configuration.md#pkg) key contains set of options instructin

## Configuration

{!./app-builder-lib.Interface.PkgOptions.md!}
{!./app-builder-lib.Interface.PkgOptions.md!}
20 changes: 7 additions & 13 deletions pages/publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,29 +117,23 @@ Detected automatically using:
# Publishers

## Bitbucket
{!./builder-util-runtime.Interface.BitbucketOptions.md!}
{!./builder-util-runtime.Interface.BitbucketOptions.md!}

## Github

{!./builder-util-runtime.Interface.GithubOptions.md!}
{!./builder-util-runtime.Interface.GithubOptions.md!}

## Keygen

{!./builder-util-runtime.Interface.KeygenOptions.md!}
{!./builder-util-runtime.Interface.KeygenOptions.md!}

## S3

{!./builder-util-runtime.Interface.S3Options.md!}
{!./builder-util-runtime.Interface.S3Options.md!}

## Snap Store

{!./builder-util-runtime.Interface.SnapStoreOptions.md!}
{!./builder-util-runtime.Interface.SnapStoreOptions.md!}

## Spaces

{!./builder-util-runtime.Interface.SpacesOptions.md!}
{!./builder-util-runtime.Interface.SpacesOptions.md!}

## BYO Generic (create-your-own)

(And maybe submit it upstream in a PR!)
{!./builder-util-runtime.Interface.GenericServerOptions.md!}
{!./builder-util-runtime.Interface.GenericServerOptions.md!}
2 changes: 1 addition & 1 deletion pages/snap.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ The top-level [snap](configuration.md#snap) key contains set of options instruct

## Configuration

{!./app-builder-lib.Interface.SnapOptions.md!}
{!./app-builder-lib.Interface.SnapOptions.md!}
2 changes: 1 addition & 1 deletion pages/squirrel-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Your app must be able to handle Squirrel.Windows startup events that occur durin

## Configuration

{!./app-builder-lib.Interface.SquirrelWindowsOptions.md!}
{!./app-builder-lib.Interface.SquirrelWindowsOptions.md!}
2 changes: 1 addition & 1 deletion pages/stylesheets/autowidth.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
}

/* Hide TOC elements less than h3 */
.md-nav--secondary .md-nav__list .md-nav__list .md-nav__list { display: none }
/* .md-nav--secondary .md-nav__list .md-nav__list .md-nav__list { display: none } */
2 changes: 1 addition & 1 deletion pages/tutorials/adding-electron-fuses.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ npx @electron/fuses read --app /Applications/Foo.app
```

## Typedoc
{!./app-builder-lib.Interface.FuseOptionsV1.md!}
{!./app-builder-lib.Interface.FuseOptionsV1.md!}
2 changes: 1 addition & 1 deletion pages/win.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ VirtualBox is not supported by electron-builder for now, so, you need to setup b

## Configuration

{!./app-builder-lib.Interface.WindowsConfiguration.md!}
{!./app-builder-lib.Interface.WindowsConfiguration.md!}
2 changes: 0 additions & 2 deletions typedoc.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,5 @@ module.exports = {
private: false,
inherited: false,
external: false,
"@alpha": false,
"@beta": false,
},
}

0 comments on commit b06c5ef

Please sign in to comment.