Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sake92 committed Jan 16, 2024
1 parent bb0ddef commit 0a2ae6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/src/files/tutorials/GettingStarted.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object GettingStarted extends TutorialPage {

or if you want to run them transactionally:
```scala
ctx.runTransaction() {
ctx.runTransaction {
// queries go here!
}
```
Expand Down
12 changes: 0 additions & 12 deletions docs/src/utils/templates.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ trait DocStaticPage extends StaticPage with AnchorjsDependencies with FADependen
override def scriptURLs = super.scriptURLs
.appended(files.scripts.`main.js`.ref)

// you can set a custom Bootstrap theme..
/*
override def bootstrapSettings = super.bootstrapSettings.withDepsProvider(DependencyProvider.unpkg)
override def bootstrapDependencies = super.bootstrapDependencies
.withCssDependencies(
Dependencies.default.withDeps(
Dependency("dist/flatly/bootstrap.min.css", bootstrapSettings.version, "bootswatch")
)
)
*/

}

trait DocPage extends DocStaticPage with HepekBootstrap5BlogPage with PrismDependencies {
Expand Down
4 changes: 2 additions & 2 deletions squery/src/ba/sake/squery/sql.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ type SqlInterpolatorArgOrQuery = LiteralString | DynamicArg[?] | Query
*/
extension (sc: StringContext) {

inline def sql(args: SqlInterpolatorArgOrQuery*): Query =
def sql(args: SqlInterpolatorArgOrQuery*): Query =
val stringPartsIter = sc.parts.iterator
val argsIter = args.iterator
var sb = StringBuilder(stringPartsIter.next())
val sb = StringBuilder(stringPartsIter.next())
val allArgs = ListBuffer.empty[DynamicArg[?]]

while stringPartsIter.hasNext do {
Expand Down

0 comments on commit 0a2ae6e

Please sign in to comment.