Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Moved docs/ to general/. Adjusted the base URL. Added final CI touches.
Browse files Browse the repository at this point in the history
  • Loading branch information
EraYaN committed Sep 14, 2019
1 parent 683344c commit e3cc856
Show file tree
Hide file tree
Showing 39 changed files with 40 additions and 14 deletions.
42 changes: 34 additions & 8 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,38 @@ jobs:
- checkout: self
clean: true
submodules: true
persistCredentials: false
persistCredentials: true

- powershell: |
choco install docfx -y
docfx docfx.json
if ($lastexitcode -ne 0){
throw ("Error generating document")
}
displayName: "DocFX Build"
- task: PowerShell@2
displayName: "DocFX Build"
inputs:
targetType: 'inline'
script: 'choco install docfx -y
docfx docfx.json
if ($lastexitcode -ne 0){
throw ("Error generating document")
}'

- task: CmdLine@2
displayName: "Clone Website"
inputs:
script: 'git clone https://github.com/jellyfin/jellyfin.github.io jellyfin.github.io'
workingDirectory: '$(Build.ArtifactStagingDirectory)'
#failOnStderr: false # Optional

- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/_site'
contents: '**'
targetFolder: '$(Build.ArtifactStagingDirectory)/jellyfin.github.io/docs'
cleanTargetFolder: true # Optional
overWrite: true # Optional
#flattenFolders: false # Optional
#preserveTimestamp: false # Optional

- task: CmdLine@2
displayName: "Add files to website"
inputs:
script: 'git add docs && git commit -m "Documentation update" && git push origin'
workingDirectory: '$(Build.ArtifactStagingDirectory)/jellyfin.github.io'
#failOnStderr: false # Optional
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Describe all available API surfaces and class from plugin development.
## Docs
`docs` is the main custom documentation directory.
All uids for the custom documentation are relative to this directory, with `administration` and `contributing` shortened to `admin` and `contrib` respectively.
So for example to reference the file `docs/administration/installing.md` one would use `xref:admin-installing` with an optional anchor like `xref:admin-installing#arch`.
So for example to reference the file `general/administration/installing.md` one would use `xref:admin-installing` with an optional anchor like `xref:admin-installing#arch`.

### Administration

Expand Down
6 changes: 3 additions & 3 deletions docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
},
{
"files": [
"docs/**.md",
"docs/**/toc.yml",
"general/**.md",
"general/**/toc.yml",
"toc.yml",
"index.md"
]
Expand Down Expand Up @@ -70,7 +70,7 @@
"cleanupCacheHistory": false,
"disableGitFeatures": false,
"sitemap":{
"baseUrl": "https://docs.jellyfin.org",
"baseUrl": "https://jellyfin.org/docs/",
"priority": 0.1,
"changefreq": "daily"
}
Expand Down
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions toc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- uid: general-docs
href: docs/
href: general/
- uid: plugin-api-docs
href: plugin-api/
- uid: getting-help
Expand All @@ -8,4 +8,4 @@
- name: GitHub
href: https://github.com/jellyfin
- name: Website
href: https://jellyfin.media
href: https://jellyfin.org

0 comments on commit e3cc856

Please sign in to comment.