Skip to content

Commit

Permalink
Merge pull request #2455 from posit-dev/mnv-quarto-websites
Browse files Browse the repository at this point in the history
Improve Quarto websites projects inspection and generated configuration
  • Loading branch information
marcosnav authored Dec 6, 2024
2 parents 772a4a9 + 21cdcd3 commit 3f22dbb
Show file tree
Hide file tree
Showing 12 changed files with 715 additions and 100 deletions.
6 changes: 3 additions & 3 deletions internal/inspect/detectors/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ import (
)

type ContentTypeDetector struct {
log logging.Logger
detectors []ContentTypeInferer
}

func NewContentTypeDetector(log logging.Logger) *ContentTypeDetector {
return &ContentTypeDetector{
log: log,
detectors: []ContentTypeInferer{
// The order here is important, since the first
// ContentTypeInferer to return a non-nil
Expand All @@ -27,7 +29,7 @@ func NewContentTypeDetector(log logging.Logger) *ContentTypeDetector {
NewPlumberDetector(),
NewRMarkdownDetector(log),
NewNotebookDetector(),
NewQuartoDetector(),
NewQuartoDetector(log),
NewRShinyDetector(),
NewPyShinyDetector(),
NewFastAPIDetector(),
Expand Down Expand Up @@ -104,5 +106,3 @@ func (t *ContentTypeDetector) InferType(base util.AbsolutePath, entrypoint util.
slices.SortFunc(allConfigs, compareConfigs)
return allConfigs, nil
}

var _ ContentTypeInferer = &ContentTypeDetector{}
Loading

0 comments on commit 3f22dbb

Please sign in to comment.