-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switching to sphinx-theme-builder simplifies the Python packaging process, by integrating the NodeJS build step within the Python wheel generation step. This creates much simpler semantics around installation by avoiding the need for a separate NodeJS build step outside of the Python installation process. Grunt enables a simpler format for describing builds, making it much easier to reason about and set up. This is especially relevant since the builds are now executed with NodeJS 16 and most of the Gulp plugins in the previous setup were not ready for Node 16.
- Loading branch information
Showing
13 changed files
with
6,233 additions
and
5,820 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
const sass = require("sass"); | ||
|
||
const asset_path = "src/furo/assets/"; | ||
|
||
const theme_static_path = "src/furo/theme/furo/static/"; | ||
const theme_css = theme_static_path + "styles/furo.css"; | ||
const extensions_css = theme_static_path + "styles/furo-extensions.css"; | ||
const theme_js = theme_static_path + "scripts/furo.js"; | ||
|
||
module.exports = function (grunt) { | ||
grunt.initConfig({ | ||
sass: { | ||
options: { | ||
implementation: sass, | ||
sourceMap: true, | ||
}, | ||
dist: { | ||
files: { | ||
[theme_css]: asset_path + "styles/furo.sass", | ||
[extensions_css]: asset_path + "styles/furo-extensions.sass", | ||
}, | ||
}, | ||
}, | ||
autoprefixer: { | ||
dist: { | ||
files: { | ||
[theme_css]: [theme_css], | ||
}, | ||
}, | ||
}, | ||
browserify: { | ||
dist: { | ||
files: { | ||
[theme_js]: asset_path + "scripts/**.js", | ||
}, | ||
options: { | ||
browserifyOptions: { | ||
plugin: ["tinyify"], | ||
debug: true, | ||
}, | ||
}, | ||
}, | ||
}, | ||
exorcise: { | ||
bundle: { | ||
options: {}, | ||
files: { | ||
[theme_js + ".map"]: theme_js, | ||
}, | ||
}, | ||
}, | ||
concurrent: { | ||
all: [ | ||
["browserify", "exorcise"], | ||
["sass", "autoprefixer"], | ||
], | ||
}, | ||
}); | ||
|
||
grunt.loadNpmTasks("grunt-autoprefixer"); | ||
grunt.loadNpmTasks("grunt-browserify"); | ||
grunt.loadNpmTasks("grunt-concurrent"); | ||
grunt.loadNpmTasks("grunt-exorcise"); | ||
grunt.loadNpmTasks("grunt-sass"); | ||
|
||
grunt.registerTask("default", ["concurrent:all"]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.