Skip to content

Commit

Permalink
Fix doc publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamet committed Aug 3, 2020
1 parent 00e5794 commit 81403c9
Show file tree
Hide file tree
Showing 44 changed files with 14 additions and 14 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- uses: actions/setup-java@v1
with:
java-version: 12
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- uses: olafurpg/setup-gpg@v2
if: startsWith(github.ref, 'refs/tags/v')
- name: Publish ${{ github.ref }}
Expand All @@ -30,10 +33,6 @@ jobs:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Update docs
run: |
git config --global user.name "ScalaPB Docs"
Expand All @@ -46,6 +45,8 @@ jobs:
yarn deploy
env:
TOKEN: ${{secrets.DEPLOY_KEY}}
USE_SSH: true
GIT_USER: git

scalapbc:
runs-on: ubuntu-latest
Expand Down
13 changes: 6 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ lazy val e2eNoJava = (projectMatrix in file("e2e-nojava"))
)

lazy val docs = project
.in(file("scalapb-docs"))
.enablePlugins(MdocPlugin, DocusaurusPlugin, ScalaUnidocPlugin)
.dependsOn(runtimeJVM2_12)
.settings(commonSettings)
.settings(
publish / skip := true,
scalaVersion := Scala212,
crossScalaVersions := Seq(Scala212),
libraryDependencies ++= Seq(
Expand All @@ -306,7 +306,7 @@ lazy val docs = project
"com.lihaoyi" %% "os-lib" % "0.5.0",
"org.plotly-scala" %% "plotly-render" % "0.7.2"
),
// mdocIn := baseDirectory.value / "src" / "main" / "markdown",
mdocIn := baseDirectory.value / "src" / "main" / "markdown",
siteSubdirName in ScalaUnidoc := "api/scalapb/latest",
addMappingsToSiteDir(mappings in (ScalaUnidoc, packageDoc), siteSubdirName in ScalaUnidoc),
unidocProjectFilter in (ScalaUnidoc, unidoc) := inProjects(
Expand All @@ -318,11 +318,10 @@ lazy val docs = project
cleanFiles += (target in (ScalaUnidoc, unidoc)).value,
docusaurusCreateSite := docusaurusCreateSite.dependsOn(unidoc in Compile).value,
docusaurusPublishGhpages := docusaurusPublishGhpages.dependsOn(unidoc in Compile).value,

mdocVariables := Map(
"scalapb" -> "0.10.8",
"sbt_protoc" -> "0.99.34",
"protoc" -> "3.11.4",
"scalapb" -> "0.10.8",
"sbt_protoc" -> "0.99.34",
"protoc" -> "3.11.4",
"sparksql_scalapb" -> "0.10.4"
),
git.remoteRepo := "[email protected]:scalapb/scalapb.github.io.git",
Expand All @@ -331,5 +330,5 @@ lazy val docs = project
includeFilter in ghpagesCleanSite := GlobFilter(
(ghpagesRepository.value / "README.md").getCanonicalPath
)
*/
*/
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.5.2")

addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.4.1")

addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.3" )
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.3")

// For https://github.com/lightbend/mima/issues/422
resolvers += Resolver.url(
Expand Down
4 changes: 2 additions & 2 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
onBrokenLinks: 'throw',
favicon: 'img/favicon.ico',
organizationName: 'scalapb', // Usually your GitHub org/user name.
projectName: 'ScalaPB', // Usually your repo name.
projectName: 'scalapb.github.io',
themeConfig: {
sidebarCollapsible: false,
navbar: {
Expand Down Expand Up @@ -92,7 +92,7 @@ module.exports = {
sidebarPath: require.resolve('./sidebars.js'),
// mdoc generates to website/docs. The edit url makes it point at
// the
path: '../scalapb-docs/target/mdoc',
path: '../docs/target/mdoc',
// editUrl:
// 'https://github.com/scalapb/ScalaPB/edit/master/docs/',
},
Expand Down

0 comments on commit 81403c9

Please sign in to comment.