Skip to content

Commit

Permalink
Merge pull request #469 from pascalberger/mkdocs
Browse files Browse the repository at this point in the history
(mkdocs) Migrate MkDocs Package
  • Loading branch information
majkinetor authored Dec 12, 2016
2 parents 565e9f2 + e66daf1 commit 45662b4
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
38 changes: 38 additions & 0 deletions automatic/mkdocs/mkdocs.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>mkdocs</id>
<title>MkDocs</title>
<version>0.16.0</version>
<authors>Tom Christie</authors>
<owners>chocolatey</owners>
<projectUrl>http://www.mkdocs.org</projectUrl>
<projectSourceUrl>https://github.com/mkdocs/mkdocs/</projectSourceUrl>
<packageSourceUrl>https://github.com/chocolatey/chocolatey-coreteampackages/tree/master/automatic/mkdocs</packageSourceUrl>
<iconUrl>https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/45d7d88c15fb38a55f15ef9ecf39b356cdbadabd/icons/mkdocs.png</iconUrl>
<licenseUrl>https://github.com/mkdocs/mkdocs/blob/master/LICENSE</licenseUrl>
<docsUrl>http://www.mkdocs.org</docsUrl>
<bugTrackerUrl>https://github.com/mkdocs/mkdocs/issues</bugTrackerUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<summary>Project documentation with Markdown.</summary>
<description>
MkDocs is a fast, simple and downright gorgeous static site generator that's geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML configuration file.

## Features

* **Host anywhere:** MkDocs builds completely static HTML sites that you can host on GitHub pages, Amazon S3, or [anywhere](http://www.mkdocs.org/user-guide/deploying-your-docs/) else you choose.
* **Great themes available:** There's a stack of good looking themes available for MkDocs. Choose between the built in themes: [mkdocs](http://www.mkdocs.org/user-guide/styling-your-docs/#mkdocs) and [readthedocs](http://www.mkdocs.org/user-guide/styling-your-docs/#readthedocs), select one of the 3rd party themes in the [MkDocs wiki](https://github.com/mkdocs/mkdocs/wiki/MkDocs-Themes), or [build your own](http://www.mkdocs.org/user-guide/custom-themes/).
* **Preview your site as you work:** The built-in dev-server allows you to preview your documentation as you're writing it. It will even auto-reload and refresh your browser whenever you save your changes.
* **Easy to customize:** Get your project documentation looking just the way you want it by customizing the theme.
</description>
<tags>mkdocs markdown documentation foss cross-platform cli</tags>
<releaseNotes>http://www.mkdocs.org/about/release-notes/</releaseNotes>
<dependencies>
<dependency id="Python" version="2.6" />
</dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
5 changes: 5 additions & 0 deletions automatic/mkdocs/tools/ChocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Update-SessionEnvironment

$version = '0.16.0'

python -m pip install mkdocs==$version
1 change: 1 addition & 0 deletions automatic/mkdocs/tools/ChocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python -m pip uninstall mkdocs -y
26 changes: 26 additions & 0 deletions automatic/mkdocs/update.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import-module au

$releases = 'https://github.com/mkdocs/mkdocs/releases'

function global:au_SearchReplace {
@{
'tools\ChocolateyInstall.ps1' = @{
"(^[$]version\s*=\s*)('.*')" = "`$1'$($Latest.Version)'"
}
}
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases

#0.16.0.zip
$re = "(.*).zip"
$url = $download_page.links | ? href -match $re | select -First 1 -expand href

$version = [IO.Path]::GetFileNameWithoutExtension($url)

$Latest = @{ Version = $version }
return $Latest
}

update -ChecksumFor none
Binary file added icons/mkdocs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 45662b4

Please sign in to comment.