Skip to content

Commit

Permalink
Remove sass from homepage (fsprojects#2981)
Browse files Browse the repository at this point in the history
* WIP, replace sass and bootstrap for homepage

* Testimonials and footer

* Tooltip for copy button.

* Users

* Your logo here tweak

* Sponsors

* Remove unused code

* Kinda ok media section.

* Fancy scrollbar
  • Loading branch information
nojaf committed Nov 14, 2023
1 parent 77f6444 commit 0b030a7
Show file tree
Hide file tree
Showing 4 changed files with 1,246 additions and 401 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ FormatChanged.ps1
src/Fantomas.FCS/generated/

# FsDocs
docs/homepage.css
docs/homepage.css.map
docs/content/fsdocs-custom.css
docs/content/navbar.css
docs/content/sidebar.css
Expand Down
8 changes: 0 additions & 8 deletions docs/.style/style.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,15 @@ open FSharp.Control.Reactive

let sassCompiler = new SassCompiler(new V8JsEngineFactory())
let (</>) a b = Path.Combine(a, b)
let inputFileHomepage = __SOURCE_DIRECTORY__ </> "homepage.sass"
let inputFileTemplate = __SOURCE_DIRECTORY__ </> "fsdocs-custom.sass"
let inputFolder = __SOURCE_DIRECTORY__
let outputHomepage = __SOURCE_DIRECTORY__ </> ".." </> "homepage.css"
let outputTemplate = __SOURCE_DIRECTORY__ </> "../content/" </> "fsdocs-custom.css"

let compileSass () =
try
let homepage =
sassCompiler.CompileFile(inputFileHomepage, ?outputPath = Some outputHomepage)

let template =
sassCompiler.CompileFile(inputFileTemplate, ?outputPath = Some outputTemplate)

File.WriteAllText(outputHomepage, homepage.CompiledContent)
printfn "Compiled %s at %A" outputHomepage DateTime.Now

File.WriteAllText(outputTemplate, template.CompiledContent)
printfn "Compiled %s at %A" outputTemplate DateTime.Now

Expand Down
Loading

0 comments on commit 0b030a7

Please sign in to comment.