Further specify how to publish website (#476)

This commit is contained in:
Torkel Rogstad 2019-05-22 12:53:37 +02:00 committed by Chris Stewart
parent 37c8018e8e
commit 942db3fd1d
2 changed files with 33 additions and 11 deletions

View file

@ -80,3 +80,6 @@ $ sbt
This command first generates Scaladocs, then invokes This command first generates Scaladocs, then invokes
`docs/docusaurusPublishGhPages`, which in turn compile our mdoc `docs/docusaurusPublishGhPages`, which in turn compile our mdoc
files, build the site and push them to GH pages. files, build the site and push them to GH pages.
Before running those commands, you might have to change a few constants in
`siteConfig.js`. These are specifed in the comments of that file.

View file

@ -8,9 +8,34 @@
// See https://docusaurus.io/docs/site-config for all the possible // See https://docusaurus.io/docs/site-config for all the possible
// site configuration options. // site configuration options.
/**
* For github.io type URLs, you would set the url and baseUrl like:
* const url = 'https://your-github-user-name.github.io'
* const baseUrl = "/bitcoin-s-core/"
*
* This would place the site under
* https://your-user-name.github.io/bitcoin-s-core.
* If publishing under a custom domain with no path
* after the domain, you'd set const baseUrl = "/"
* and const url = "https://your-domain.org".
*/
const url = "https://bitcoin-s.org"
const baseUrl = "/"; const baseUrl = "/";
const scaladocUrl = baseUrl + "api/org/bitcoins"; const scaladocUrl = baseUrl + "api/org/bitcoins";
/**
* This should be the username/organization that owns the repo
* you're publishing the website for.
*/
const organizationName = "bitcoin-s",
/**
* This should be the name of the repo you're publishing the
* website for
*/
const projectName = "bitcoin-s-core"
// List of projects/orgs using your project for the users page. // List of projects/orgs using your project for the users page.
const users = [ const users = [
/* /*
@ -46,22 +71,16 @@ const users = [
const siteConfig = { const siteConfig = {
title: "bitcoin-s", // Title for your website. title: "bitcoin-s", // Title for your website.
tagline: "Bitcoin implementation in Scala", tagline: "Bitcoin implementation in Scala",
url: "https://bitcoin-s.org", // Your website URL url,
baseUrl, // Base URL for your project */ baseUrl,
// For github.io type URLs, you would set the url and baseUrl like:
// url: 'https://facebook.github.io',
// baseUrl: '/test-site/',
// URL for editing docs, has to be present for the // URL for editing docs, has to be present for the
// "Edit this Doc" button to appear // "Edit this Doc" button to appear
editUrl: "https://github.com/bitcoin-s/bitcoin-s-core/docs", editUrl: "https://github.com/bitcoin-s/bitcoin-s-core/docs",
// Used for publishing and more // Used for publishing and more
projectName: "bitcoin-s", projectName,
organizationName: "bitcoin-s", organizationName,
// For top-level user or org sites, the organization is still the same.
// e.g., for the https://JoelMarcey.github.io site, it would be set like...
// organizationName: 'JoelMarcey'
// For no header links in the top nav bar -> headerLinks: [], // For no header links in the top nav bar -> headerLinks: [],
headerLinks: [ headerLinks: [
@ -71,7 +90,7 @@ const siteConfig = {
{ blog: true, label: "Blog" } { blog: true, label: "Blog" }
], ],
// If you have users set above, you add it here: /** Makes the user showcase appear */
users, users,
/* path to images for header/footer */ /* path to images for header/footer */