Skip to content

Commit

Permalink
Docs landing page changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Byrd authored and TheAngryByrd committed Oct 18, 2019
1 parent 30cc9ad commit 7b0085e
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 9 deletions.
16 changes: 16 additions & 0 deletions Content/Library/docsSrc/content/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -290,3 +290,19 @@ h1.header:visited {
padding-top: 69px;
margin-top: -69px;
}

/* .main {
margin: .5em 3em;
} */

.main h1 {
padding: .5em 0em
}

.main h2 {
padding: .5em 0em
}

.footer {
padding-top: 4em
}
6 changes: 0 additions & 6 deletions Content/Library/docsSrc/index.fsx

This file was deleted.

45 changes: 45 additions & 0 deletions Content/Library/docsSrc/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# MyLib.1

---

## What is MyLib.1?

MyLib.1 is a library that does this specific thing.

## Why use MyLib.1?

I created it because I had to solve an issue with this other thing.

---


<div class="row">
<div class="col-sm-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Getting started</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="/Getting_Started.html" class="btn btn-primary">Get started</a>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Docs</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="docs/Docs.html" class="btn btn-primary">Read Docs</a>
</div>
</div>
</div>

<div class="col-sm-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Api Docs</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="api/index.html" class="btn btn-primary">Read Api Docs</a>
</div>
</div>
</div>
</div>
13 changes: 11 additions & 2 deletions Content/Library/docsTool/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,25 @@ module GenerateDocs =
refreshWebpageEvent.Trigger m.FullPath
)
)

let d2 =
!! (docsSrcDir </> "content" </> "**/*")
++ (docsSrcDir </> "files" </> "**/*")
|> ChangeWatcher.run(fun changes ->
printfn "changes %A" changes
copyAssets ()
refreshWebpageEvent.Trigger "Assets"
)


let d3 =
!!( projInfo.TargetPath.FullName )
|> ChangeWatcher.run(fun changes ->
changes
|> Seq.iter(fun c -> Trace.logf "Regenerating API docs due to %s" c.FullPath )
generateAPI projInfo githubRepoName
refreshWebpageEvent.Trigger "Api"
)
{ disposables = [d1; d2] } :> IDisposable
{ disposables = [d1; d2; d3] } :> IDisposable


module WebServer =
Expand Down
7 changes: 6 additions & 1 deletion Content/Library/docsTool/templates/master.fs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let masterTemplate gitRepoName navBar titletext bodyText =
]
body [] [
yield navBar
yield! bodyText
yield div [Class "container main"] bodyText
yield script [
Src "https://code.jquery.com/jquery-3.3.1.slim.min.js"
Integrity "sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
Expand All @@ -47,4 +47,9 @@ let masterTemplate gitRepoName navBar titletext bodyText =
yield script [Src "/content/tips.js" ] []
yield script [Src "/content/hotload.js" ] []
]
footer [ Class "footer font-small bg-dark navbar fixed-bottom" ] [
div [Class "container"] [
p [] [str "hello"]
]
]
]

0 comments on commit 7b0085e

Please sign in to comment.