Re-enable Netlify config

This commit is contained in:
Jez Cope 2021-03-06 13:00:27 +00:00
parent e54ea1bc0d
commit 16e5cdb04e
9 changed files with 1284 additions and 14 deletions

13
Pipfile Normal file
View File

@ -0,0 +1,13 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
nikola = {extras = ["extras"], version = "*"}
arrow = "*"
[dev-packages]
[requires]
python_version = "3.8"

1065
Pipfile.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -635,7 +635,11 @@ CACHE_FOLDER = '.cache'
# use this feature if you do not understand what this means.
# Compiler to process LESS files.
LESS_COMPILER = 'lessc'
LESS_COMPILER = './node_modules/.bin/lessc'
if not Path(LESS_COMPILER).exists():
print(f"lessc not found at {LESS_COMPILER}")
print("Try running `yarn install`")
sys.exit(100)
# A list of options to pass to the LESS compiler.
# Final command is: LESS_COMPILER LESS_OPTIONS file.less

2
netlify.toml Normal file
View File

@ -0,0 +1,2 @@
[build.environment]
NODE_VERSION = "14.9.0"

7
package.json Normal file
View File

@ -0,0 +1,7 @@
{
"license": "UNLICENSED",
"private": true,
"dependencies": {
"less": "^3.12.2"
}
}

96
requirements.txt Normal file
View File

@ -0,0 +1,96 @@
#
# These requirements were autogenerated by pipenv
# To regenerate from the project's Pipfile, run:
#
# pipenv lock --requirements
#
-i https://pypi.org/simple
aiohttp==3.7.4
argon2-cffi==20.1.0
arrow==1.0.2
async-generator==1.10; python_version >= '3.5'
async-timeout==3.0.1; python_full_version >= '3.5.3'
attrs==20.3.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
babel==2.9.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
backcall==0.2.0
bleach==3.3.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
blinker==1.4
certifi==2020.12.5
cffi==1.14.5
chardet==3.0.4; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
cloudpickle==1.6.0; python_version >= '3.5'
decorator==4.4.2
defusedxml==0.7.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
docutils==0.16; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
doit==0.33.1; python_version >= '3.5'
entrypoints==0.3; python_version >= '2.7'
ghp-import==1.0.1
hsluv==5.0.2
html5lib==1.1
idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
ipykernel==5.5.0
ipython-genutils==0.2.0
ipython==7.21.0; python_version >= '3.7'
jedi==0.18.0; python_version >= '3.6'
jinja2==2.11.3
jsonschema==3.2.0
jupyter-client==6.1.11; python_version >= '3.5'
jupyter-core==4.7.1; python_version >= '3.6'
jupyterlab-pygments==0.1.2
lxml==4.6.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
mako==1.1.4; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
markdown==3.3.4; python_version >= '3.6'
markupsafe==1.1.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
micawber==0.5.3
mistune==0.8.4
multidict==5.1.0; python_version >= '3.6'
natsort==7.1.1; python_version >= '3.4'
nbclient==0.5.3; python_full_version >= '3.6.1'
nbconvert==6.0.7; python_version >= '3.6'
nbformat==5.1.2; python_version >= '3.5'
nest-asyncio==1.5.1; python_version >= '3.5'
nikola[extras]==8.1.3
notebook==6.2.0
packaging==20.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pandocfilters==1.4.3
parso==0.8.1; python_version >= '3.6'
pexpect==4.8.0; sys_platform != 'win32'
phpserialize==1.3
pickleshare==0.7.5
piexif==1.1.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
pillow==8.1.2; python_version >= '3.6'
prometheus-client==0.9.0
prompt-toolkit==3.0.16; python_full_version >= '3.6.1'
ptyprocess==0.7.0; os_name != 'nt'
pycparser==2.20; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pygal==2.4.0
pygments==2.8.0; python_version >= '3.5'
pyinotify==0.9.6; sys_platform == 'linux'
pyparsing==2.4.7; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
pyphen==0.10.0
pyrsistent==0.17.3; python_version >= '3.5'
pyrss2gen==1.1
python-dateutil==2.8.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pytz==2021.1
pyzmq==22.0.3; python_version >= '3.6'
requests==2.25.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
ruamel.yaml.clib==0.2.2; python_version < '3.10' and platform_python_implementation == 'CPython'
ruamel.yaml==0.16.13
send2trash==1.5.0
six==1.15.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
smartypants==2.0.1
terminado==0.9.2; python_version >= '3.6'
testpath==0.4.4
toml==0.10.2
tornado==6.1; python_version >= '3.5'
traitlets==5.0.5; python_version >= '3.7'
typing-extensions==3.7.4.3
typogrify==2.0.7
unidecode==1.2.0
urllib3==1.26.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'
watchdog==2.0.2
wcwidth==0.2.5
webencodings==0.5.1
yapsy==1.12.2
yarl==1.6.3; python_version >= '3.6'

1
runtime.txt Normal file
View File

@ -0,0 +1 @@
3.7

View File

@ -23,26 +23,17 @@ let
pythonWithPackages = python.withPackages (py: [
py.python
# For locally-run tasks
py.invoke
py.rich
my_yaspin
py.requests
my_yaspin
py.Nikola
py.markdown
py.jinja2
py.notebook
py.nbconvert
py.coconut
py.pygments
py.ruamel_yaml
py.arrow
# For `nikola auto` & `nikola serve`
py.aiohttp
py.ws4py
py.watchdog
py.typogrify
]);
in pkgs.mkShell {
buildInputs = with pkgs; [ pythonWithPackages zeromq lessc nodejs-14_x yarn ];
buildInputs = with pkgs; [ pythonWithPackages pipenv zeromq lessc nodejs-14_x yarn ];
}

91
yarn.lock Normal file
View File

@ -0,0 +1,91 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
copy-anything@^2.0.1:
version "2.0.3"
resolved "https://registry.yarnpkg.com/copy-anything/-/copy-anything-2.0.3.tgz#842407ba02466b0df844819bbe3baebbe5d45d87"
integrity sha512-GK6QUtisv4fNS+XcI7shX0Gx9ORg7QqIznyfho79JTnX1XhLiyZHfftvGiziqzRiEi/Bjhgpi+D2o7HxJFPnDQ==
dependencies:
is-what "^3.12.0"
errno@^0.1.1:
version "0.1.8"
resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.8.tgz#8bb3e9c7d463be4976ff888f76b4809ebc2e811f"
integrity sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==
dependencies:
prr "~1.0.1"
graceful-fs@^4.1.2:
version "4.2.6"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.6.tgz#ff040b2b0853b23c3d31027523706f1885d76bee"
integrity sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==
image-size@~0.5.0:
version "0.5.5"
resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.5.5.tgz#09dfd4ab9d20e29eb1c3e80b8990378df9e3cb9c"
integrity sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=
is-what@^3.12.0:
version "3.14.1"
resolved "https://registry.yarnpkg.com/is-what/-/is-what-3.14.1.tgz#e1222f46ddda85dead0fd1c9df131760e77755c1"
integrity sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==
less@^3.12.2:
version "3.13.1"
resolved "https://registry.yarnpkg.com/less/-/less-3.13.1.tgz#0ebc91d2a0e9c0c6735b83d496b0ab0583077909"
integrity sha512-SwA1aQXGUvp+P5XdZslUOhhLnClSLIjWvJhmd+Vgib5BFIr9lMNlQwmwUNOjXThF/A0x+MCYYPeWEfeWiLRnTw==
dependencies:
copy-anything "^2.0.1"
tslib "^1.10.0"
optionalDependencies:
errno "^0.1.1"
graceful-fs "^4.1.2"
image-size "~0.5.0"
make-dir "^2.1.0"
mime "^1.4.1"
native-request "^1.0.5"
source-map "~0.6.0"
make-dir@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5"
integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==
dependencies:
pify "^4.0.1"
semver "^5.6.0"
mime@^1.4.1:
version "1.6.0"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==
native-request@^1.0.5:
version "1.0.8"
resolved "https://registry.yarnpkg.com/native-request/-/native-request-1.0.8.tgz#8f66bf606e0f7ea27c0e5995eb2f5d03e33ae6fb"
integrity sha512-vU2JojJVelUGp6jRcLwToPoWGxSx23z/0iX+I77J3Ht17rf2INGjrhOoQnjVo60nQd8wVsgzKkPfRXBiVdD2ag==
pify@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231"
integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==
prr@~1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476"
integrity sha1-0/wRS6BplaRexok/SEzrHXj19HY=
semver@^5.6.0:
version "5.7.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
source-map@~0.6.0:
version "0.6.1"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
tslib@^1.10.0:
version "1.14.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==