Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import docs #787

Open
wants to merge 438 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
438 commits
Select commit Hold shift + click to select a range
5f8caaa
Added link to lektor-htmlmin
Apr 2, 2016
46e3ed5
Fix a typo
bameda Apr 3, 2016
0be1282
Added GitLab pages
mitsuhiko Apr 5, 2016
c4f9072
Added link to demo project
mitsuhiko Apr 5, 2016
41a0c0e
Added documentation for hidden/pagination.items
mitsuhiko Apr 10, 2016
5496e3e
Merge pull request lektor-website/89 from bameda/patch-1
mitsuhiko Apr 11, 2016
77e5a47
Merge pull request lektor-website/88 from Vesuvium/patch-1
mitsuhiko Apr 11, 2016
80eca44
Set min-height for .showcase.project items
bameda Apr 28, 2016
80f9b19
typo fix in flow block models documentation
berekuk May 3, 2016
ef94508
Merge pull request lektor-website/92 from berekuk/patch-1
May 8, 2016
7978342
Merge pull request lektor-website/91 from bameda/master
May 8, 2016
9c2cbc0
Add lektor-creative-commons plugin to plugin list
humrochagf May 29, 2016
8645b12
typo fix in pad api documentation
Priestch May 31, 2016
48d5013
Python 3 compatibility
singingwolfboy May 20, 2016
e69db8a
Merge pull request lektor-website/93 from singingwolfboy/showcase-dav…
singingwolfboy Jun 2, 2016
069c36e
Update Travis deployment docs
singingwolfboy Jun 3, 2016
4c96819
Update lektor-atom to 0.2
singingwolfboy Jun 3, 2016
40250e5
Merge pull request lektor-website/99 from singingwolfboy/doc-travis-d…
singingwolfboy Jun 3, 2016
a1d77d7
Document Python 3 support
singingwolfboy Jun 3, 2016
ce0a642
Fix typo "net" → "next"
milibopp Jun 28, 2016
b8cff22
updated installation
go-bears Jul 1, 2016
57f7f93
Merge pull request lektor-website/104 from go-bears/master
mitsuhiko Jul 7, 2016
abef5b2
Merge pull request lektor-website/95 from humrochagf/patch-1
mitsuhiko Jul 8, 2016
c59d9c5
Add quotations marks around HTML attribute
singingwolfboy Jul 22, 2016
2d00339
Merge pull request lektor-website/109 from singingwolfboy/fix-quickst…
singingwolfboy Jul 22, 2016
7cded7a
Add favicon
singingwolfboy Jul 22, 2016
b569a1c
Merge pull request lektor-website/110 from singingwolfboy/favicon
singingwolfboy Jul 22, 2016
7133d11
Close <li> tags
singingwolfboy Jul 22, 2016
8f21980
Merge pull request lektor-website/112 from singingwolfboy/close-li-tags
singingwolfboy Jul 22, 2016
a9c5eb0
Merge pull request lektor-website/102 from aepsil0n/typo
singingwolfboy Jul 22, 2016
c5be6c7
Clarify docs on flow blocks templates
anrie Jul 13, 2016
54d37e1
Merge pull request lektor-website/107 from anrie/master
singingwolfboy Jul 22, 2016
3bd3ebf
Updated NPM dependencies
singingwolfboy Jul 22, 2016
4261715
Merge pull request lektor-website/1 from lektor/master
go-bears Jul 24, 2016
d42e1a2
Merge pull request lektor-website/115 from go-bears/master
mitsuhiko Aug 4, 2016
2999508
Merge pull request lektor-website/114 from singingwolfboy/update-npm-…
mitsuhiko Aug 4, 2016
962f347
Prevent <code> blocks from wrapping lines
singingwolfboy Jul 22, 2016
15db50a
Fix on_setup_env example code
philippbosch Aug 8, 2016
1259213
Fix grammatical typos
wsvincent Sep 17, 2016
ccd6503
iFrame embed not work, switch to link
wsvincent Sep 20, 2016
97af45f
Merge pull request lektor-website/119 from wsvincent/master
singingwolfboy Sep 29, 2016
de8ae9e
Allows Lektor to be installed without prompt by setting env var.
sclaughl Oct 11, 2016
f5ac645
Update documentation to fit to lektor-website/240
enguerran Oct 28, 2016
3fc704d
Add lektor-nofollow plugin
kwellman Nov 4, 2016
7b6c0a7
Add an warning for using the CNAME parameter
kuc2477 Nov 16, 2016
0706fdb
Added documentation for quality parameter
tariquesani Nov 21, 2016
59139d1
Added documentname and description to the list
tariquesani Nov 21, 2016
686bf4d
Update contents.lr
kuc2477 Nov 28, 2016
811ab6e
Update lektor-webpack-support
singingwolfboy Dec 2, 2016
a9efab5
Merge pull request lektor-website/131 from lektor/update-webpack-support
singingwolfboy Dec 2, 2016
ec286ca
Add name and version fields to package.json in webpack guide
hackebrot Dec 9, 2016
8f6fc3d
Update contents.lr
JVanloofsvelt Dec 15, 2016
1207ca0
Merge pull request lektor-website/133 from elJorno/patch-1
singingwolfboy Dec 15, 2016
019cfa8
Fixed a mistake in code snippet
JVanloofsvelt Dec 16, 2016
3b87372
Fixed a small typo
JVanloofsvelt Dec 16, 2016
eb658d7
Merge pull request lektor-website/134 from elJorno/patch-3
singingwolfboy Dec 17, 2016
8ca56ab
Merge pull request lektor-website/135 from elJorno/patch-2
singingwolfboy Dec 17, 2016
4fa74b1
add yandex-metrica plugin
akhomchenko Nov 27, 2016
df2eee6
Update contents.lr
Dec 19, 2016
bdfd25b
Merge pull request lektor-website/136 from lektor/niijv-patch-1
singingwolfboy Dec 19, 2016
b6f3d7c
Merge pull request lektor-website/127 from kuc2477/patch-1
singingwolfboy Dec 21, 2016
52ce8ac
Fix wording
Dhekke Dec 31, 2016
4856dc7
Merge pull request lektor-website/137 from Dhekke/patch-1
singingwolfboy Dec 31, 2016
80c67af
Fix typo
mesbahamin Jan 4, 2017
e54f913
Fix typo in add command
Jan 16, 2017
f98f005
Merge pull request lektor-website/138 from mesbahamin/patch-1
singingwolfboy Jan 16, 2017
c0a10dd
Merge pull request lektor-website/139 from kiddick/master
singingwolfboy Jan 16, 2017
cb645d4
Update documentation for "inherits"
Feb 20, 2017
38a5f06
Fix typo
Feb 20, 2017
d6bccab
Merge pull request lektor-website/141 from lektor/niijv-patch-3
singingwolfboy Feb 21, 2017
8c64021
Merge pull request lektor-website/140 from lektor/niijv-patch-2
singingwolfboy Feb 21, 2017
2efcf5d
Merge pull request lektor-website/130 from gagoman/add-yandex-metrica…
singingwolfboy Feb 21, 2017
5c68600
Merge pull request lektor-website/124 from kwellman/patch-1
singingwolfboy Feb 21, 2017
10d938c
Merge pull request lektor-website/129 from tariquesani/patch-2
singingwolfboy Feb 21, 2017
1c5250e
Add the lektor-minify plugin to the list
pietroalbini Feb 21, 2017
d245711
Update webpack guide with npm init
hackebrot Feb 21, 2017
0c0e0d0
Merge branch 'master' into update-package-json-in-webpack-guide
hackebrot Feb 21, 2017
7bf3b48
Stress that JSON is only an example
hackebrot Feb 21, 2017
b150877
Merge pull request lektor-website/132 from hackebrot/update-package-j…
singingwolfboy Feb 22, 2017
50f6111
Merge pull request lektor-website/143 from pietroalbini/master
singingwolfboy Feb 22, 2017
8a73641
Update contents.lr
tariquesani Mar 14, 2017
b08168e
Fix typos errors in model docs
Mar 28, 2017
f3670e0
Merge pull request lektor-website/145 from saleone/model-docs-content…
tariquesani Mar 29, 2017
128b4ae
Merge pull request lektor-website/144 from lektor/tariquesani-patch-a…
tariquesani Mar 29, 2017
5978d18
s/arguemnts/arguements
adamwolf Apr 2, 2017
db8d92c
Merge pull request lektor-website/146 from adamwolf/patch-2
tariquesani Apr 3, 2017
0c9ffc0
Update contents.lr
mkjsix Apr 19, 2017
e0d9656
Fix example
marksteve Apr 25, 2017
cad1f76
Merge pull request lektor-website/149 from marksteve/patch-1
tariquesani Apr 28, 2017
06f900f
Merge pull request lektor-website/148 from mkjsix/patch-1
tariquesani Apr 28, 2017
9cabfb4
Merge pull request lektor-website/100 from singingwolfboy/py3
nixjdm Jun 12, 2017
3a8915c
Upgrade webpack example in documentation to webpack v2
madebr Jun 14, 2017
b2768be
Update contents.lr
drewja Jul 13, 2017
dc339e5
Add plugins
skorokithakis Jul 14, 2017
44635fe
Merge pull request lektor-website/154 from drewja/patch-1
nixjdm Aug 14, 2017
0712ffc
Merge pull request lektor-website/123 from enguerran/patch-1
nixjdm Aug 14, 2017
4071472
Merge pull request lektor-website/155 from skorokithakis/patch-1
nixjdm Aug 14, 2017
2e5c4f8
Update contents.lr
fschulze Aug 23, 2017
5a3d7cc
Merge pull request lektor-website/158 from fschulze/patch-1
nixjdm Aug 23, 2017
e27a91f
[lektor-website-160] Fixing link to homepage source.
nixjdm Aug 28, 2017
1a03469
Merge pull request lektor-website/161 from lektor/lektor-website-160
nixjdm Aug 28, 2017
73832aa
Add documentation for themes.
rlaverde Oct 25, 2017
3257278
Add `lektor-make` to the list of plugins
BarnabyShearer Nov 4, 2017
a0e68eb
/content/docs/templates/imageops added way to access single images an…
torian257x Dec 13, 2017
68b7911
Fixed query in single page example.
Limpan Dec 19, 2017
1a30107
Merge pull request lektor-website/170 from Jossnaz/image-doc
nixjdm Dec 21, 2017
afa8740
/content/docs/templates/imageops fix .query to .get
torian257x Dec 22, 2017
0d2fcf2
Merge pull request lektor-website/172 from Jossnaz/fix-image-access
nixjdm Dec 22, 2017
1fc8970
Link to different atom plugin GitHub profile
dwt Jan 3, 2018
968b458
Merge pull request lektor-website/171 from Limpan/fix/single-page-exa…
nixjdm Jan 11, 2018
28e7249
Merge pull request lektor-website/173 from dwt/patch-1
nixjdm Jan 11, 2018
46f3bc1
Merge pull request lektor-website/167 from BarnabyShearer/patch-1
nixjdm Jan 11, 2018
24802ea
Updating text in main theme docs page
nixjdm Jan 11, 2018
5329943
Tweaks and more info on themes installation
nixjdm Jan 11, 2018
42202c0
Capitalizing title
nixjdm Jan 11, 2018
43ac5d7
Tweaks to customizing themes page
nixjdm Jan 11, 2018
17bdf4f
Tweaks to Theme Creating
nixjdm Jan 11, 2018
999d363
Tweaks to themes packages
nixjdm Jan 11, 2018
07f5ff6
Further content tweaks to main themes page
nixjdm Jan 11, 2018
40671fe
Capitalizing a subtitle
nixjdm Jan 11, 2018
9495b97
Merge pull request lektor-website/165 from rlaverde/themes-doc
nixjdm Jan 11, 2018
1df9bfd
Merge pull request lektor-website/116 from philippbosch/patch-1
nixjdm Jan 17, 2018
cbcf042
Merge pull request lektor-website/152 from madebr/webpack2
nixjdm Jan 17, 2018
bcb9917
Merge branch 'master' into master
nixjdm Jan 17, 2018
6b0c83d
Merge pull request lektor-website/120 from sclaughl/master
nixjdm Jan 17, 2018
90a1814
Merge pull request lektor-website/111 from singingwolfboy/code-nowrap
nixjdm Jan 17, 2018
bf2d547
Merge pull request lektor-website/128 from tariquesani/patch-1
nixjdm Jan 18, 2018
a8bb756
Grammar tweak for thumbnail api page.
nixjdm Jan 18, 2018
b874bb7
[3.1] Changing warning and info about themes for 3.1 release.
nixjdm Jan 11, 2018
78ccb7a
Merge pull request lektor-website/175 from lektor/3.1
nixjdm Jan 29, 2018
8ab5c2b
[master] Added another note about the desktop app
nixjdm Jan 30, 2018
5b2174c
fix typo
xlotlu Feb 19, 2018
a1efc7f
_attachment_type: some rephrasing
xlotlu Feb 22, 2018
a10d760
Added lektor-npm-support to the list of unofficial plugins.
sterin Feb 23, 2018
7379f28
is -> are
nixjdm Mar 31, 2018
90d7e2e
Merge pull request lektor-website/178 from xlotlu/docs-changes
nixjdm Mar 31, 2018
67a57cf
[master] Minor rewording of process-template-context content.
nixjdm Apr 12, 2018
0f4f1a6
Grammar and meaning tweaks: in hands -> in hand, what it does -> what…
nixjdm Apr 17, 2018
9f2cc40
Adding jinja plugins to the list.
nixjdm Apr 17, 2018
f90ac84
Merge branch 'master' into master
nixjdm Apr 18, 2018
cb94d67
Merge pull request lektor-website/179 from sterin/master
nixjdm Apr 18, 2018
ffcfbf5
Moving plugins into sections
nixjdm Apr 19, 2018
a199546
Merge branch 'master' into pluginlist-update
nixjdm Apr 19, 2018
2c26b49
Merge pull request lektor-website/185 from lektor/pluginlist-update
nixjdm Apr 20, 2018
cb64f6a
Fixed code snippet, missing `.
nixjdm Apr 20, 2018
80e3885
Minor rewording in plugin howto
nixjdm Apr 23, 2018
f600189
Sitemap template code fix in Lektor documentation
fk-lx Apr 25, 2018
e512470
[master] Changing example theme creation command and fixing typo.
nixjdm Apr 25, 2018
e7da510
Merge pull request lektor-website/187 from fk-lx/patch-1
nixjdm Apr 25, 2018
40f71a0
Add lektor-webdav to plugin list
mesbahamin Apr 30, 2018
0fba85a
Merge pull request lektor-website/188 from mesbahamin/patch-1
nixjdm Apr 30, 2018
5ae1fd7
added read-full-post plugin
May 12, 2018
39e41a6
Merge pull request lektor-website/204 from Andrew-Shay/master
nixjdm May 12, 2018
6703534
Update contents.lr
arunpersaud May 14, 2018
0577062
Merge pull request lektor-website/205 from arunpersaud/patch-1
nixjdm May 14, 2018
d7b6797
[pluginlist-update] Rerunning webpack, adding section to plugins/publ…
nixjdm May 3, 2018
e7e6b14
[pluginlist-update] Adding lektor-tags for plugins, adding assets for…
nixjdm May 4, 2018
77e0fa6
[pluginlist-update] Basically finishing tags templates, tweaking othe…
nixjdm May 5, 2018
de0415d
[pluginlist-update] More tweaks to listing instructions. Adding urls.
nixjdm May 6, 2018
3eea778
[pluginlist-update] Redirecting /docs/plugins/list to /plugins.
nixjdm May 6, 2018
b7fe6bd
[pluginlist-update] Revising setup.py example in /docs/plugins/publis…
nixjdm May 6, 2018
8e11add
[pluginlist-update] Updated templates to final version with many upda…
nixjdm May 7, 2018
5212cf0
[pluginlist-update] Adding all of the plugins as new content.
nixjdm May 7, 2018
c8f9c7f
[pluginlist-update] Renamed mistakenly named dir, switching banner im…
nixjdm May 7, 2018
e75d293
[pluginlist-update] Publishing instruction updates.
nixjdm May 14, 2018
1ba7a19
[pluginlist-update] Fixing a few typos and grammar errors. Commenting…
nixjdm May 14, 2018
e36b135
[missing-events] Document the rest of the Lektor plugin events.
nixjdm May 15, 2018
2067d1b
Merge pull request lektor-website/208 from lektor/missing-events
nixjdm May 15, 2018
fba20b9
Merge pull request lektor-website/194 from lektor/pluginlist-update
nixjdm May 15, 2018
db88bf3
[redirect-guide] Added redirect guide
nixjdm May 15, 2018
b05c963
[plugin-reqs] Adding note about long_description package version requ…
nixjdm May 21, 2018
a800866
Merge pull request lektor-website/217 from lektor/plugin-reqs
nixjdm May 21, 2018
2831e80
[gdpr-prep] Making Google Analytics anonymize IPs, use async load, an…
nixjdm May 22, 2018
63208ff
[master] nightly builds -> daily builds since we don't control time o…
nixjdm May 22, 2018
bc6108d
Merge pull request lektor-website/218 from lektor/gdpr-prep
nixjdm May 24, 2018
e532188
[showcase-style-fixes] Fixing main container expanding in size on med…
nixjdm Jun 8, 2018
e5e7b4e
Merge pull request lektor-website/223 from lektor/showcase-style-fixes
nixjdm Jun 8, 2018
fe60b96
lextor-theme-nix -> lektor-theme-nix
donglua Jun 20, 2018
3d0442a
Merge pull request lektor-website/227 from donglua/patch-1
nixjdm Jun 20, 2018
dc7c1a4
[issue-195] Add a link from a plugin event to the plugin tag page for…
nixjdm Jun 28, 2018
103d816
Merge pull request lektor-website/229 from lektor/issue-195
nixjdm Jun 28, 2018
ff74839
[gh-pages-pat] Adding note explaining the need for a personal access …
nixjdm Jul 5, 2018
0e82996
Merge pull request lektor-website/231 from lektor/gh-pages-pat
nixjdm Jul 5, 2018
a7c9cee
[upgrade-py-node-build-versions] Upgrading a few straggling reference…
nixjdm Jul 5, 2018
cafdb44
[checkboxes] Fixing incorrect example; .id -> ._id
nixjdm Jul 6, 2018
2ea6192
Merge pull request lektor-website/232 from lektor/checkboxes
nixjdm Jul 6, 2018
5db644e
[themes] Explicitly listing the things themes can bring and that they…
nixjdm Jul 16, 2018
51e1f53
Merge pull request lektor-website/234 from lektor/themes
nixjdm Jul 16, 2018
d219f1a
Update contents.lr
hitrust Jul 18, 2018
8166a07
close li tag
hitrust Jul 19, 2018
4c3da47
nitpick - removing 1 space to align tags
nixjdm Jul 19, 2018
6e31c03
Merge pull request lektor-website/237 from hitrust/patch-2
nixjdm Jul 19, 2018
2f09ea7
Merge pull request lektor-website/235 from hitrust/patch-1
nixjdm Jul 19, 2018
ccdb13b
Fix repo link target on Travis CI deployment page to rm .git
CAM-Gerlach Aug 10, 2018
6175cf7
Update Python version from 3.5 to 3.6 in Travis script
CAM-Gerlach Aug 10, 2018
5d77264
Merge pull request lektor-website/230 from lektor/upgrade-py-node-bui…
nixjdm Sep 7, 2018
d057616
[upgrade-py-node-build-versions] Downgrading to 3.6 in the travis doc…
nixjdm Sep 7, 2018
317f83a
Merge pull request lektor-website/246 from lektor/upgrade-py-node-bui…
nixjdm Sep 7, 2018
7d0f4f6
Fix installing error
hitrust Sep 8, 2018
85fbe3c
Normalization of HTML tags
hitrust Sep 13, 2018
e3faaa7
Updated theme.ini sample and broken link
Sep 30, 2018
7f6a188
Merge pull request lektor-website/253 from Andrew-Shay/themeiniUpdate
nixjdm Oct 1, 2018
5345dfd
Fix typo: s/me/be/
pmuller Oct 2, 2018
e253039
Merge pull request lektor-website/254 from pmuller/patch-1
nixjdm Oct 2, 2018
51712b2
[deployment-options] Now linking to the deployment plugins list on th…
nixjdm Oct 3, 2018
7b5488f
Merge pull request lektor-website/255 from lektor/deployment-options
nixjdm Oct 3, 2018
2b2ea16
Changed root shell prompt line to use a lektor-website/
nixjdm Oct 13, 2018
e1d4695
Merge pull request lektor-website/247 from hitrust/patch-7
nixjdm Oct 13, 2018
bbe60e0
Merge pull request lektor-website/248 from hitrust/patch-8
nixjdm Oct 13, 2018
e58244b
Merge pull request lektor-website/239 from CAM-Gerlach/fix-repo-link
nixjdm Oct 13, 2018
bd1c9af
accompanying documentation updates to lektor/#551
xlotlu Oct 18, 2018
fdd2523
Adding note about deprecation
nixjdm Oct 21, 2018
23a2ae8
Merge pull request lektor-website/257 from xlotlu/master
nixjdm Oct 21, 2018
ab68e56
[lektor-website-197] Fixing url pathing of plugin tags with upper cas…
nixjdm Dec 15, 2018
12b84ef
Merge pull request lektor-website/265 from lektor/lektor-website-197
nixjdm Dec 15, 2018
65579ca
Changed use of iteritems to items in data bag docs
runfalk Apr 2, 2019
6e216d8
Merge pull request lektor-website/271 from lektor/lektor/lektor-643
nixjdm Apr 2, 2019
1bed2a7
fixes choco install syntax
todrobbins Apr 26, 2019
a9e381d
Merge pull request lektor-website/273 from todrobbins/patch-1
nixjdm Apr 26, 2019
e32ee8f
Added documentation about video FFmpeg support.
runfalk Aug 3, 2019
d35fc43
fix grammar: "overrided" -> "overridden"
das-g Oct 7, 2019
cab4e04
Merge pull request lektor-website/285 from das-g/patch-1
skorokithakis Oct 7, 2019
49244f2
Update project file documentation to include `output_path`
georgeyk Oct 9, 2019
7b23de0
Update size to width on some of the fields
ryentzer Oct 17, 2019
9bd8c41
fix some typos and choice of words
xlotlu Feb 4, 2020
1e876e7
Add language option to the CLI page
fmerges Feb 18, 2020
06d5665
Merge pull request lektor-website/294 from fmerges/master
skorokithakis Feb 18, 2020
6b777bd
Suggest a way to create a stable sitemap
dvarrazzo Feb 24, 2020
5a29da2
Added explanation about why sorting the sitemap can be useful
dvarrazzo Feb 26, 2020
b5ea72e
Merge pull request lektor-website/296 from dvarrazzo/stable-sitemap
runfalk Feb 26, 2020
72cc986
document new rsync options
Mar 16, 2020
9b0fafd
Merge pull request lektor-website/279 from runfalk/master
xlotlu Mar 20, 2020
6ace52d
update installation instructions
xlotlu Apr 21, 2020
2e8dbb6
add version note to rsync deploy
xlotlu Apr 21, 2020
fc698ff
add a blurb about python available in PATH
xlotlu Apr 21, 2020
404cbd5
fix broken link, closes lektor-website/292
xlotlu Apr 23, 2020
68a4268
Merge pull request lektor-website/287 from ryentzer/patch-1
xlotlu Apr 23, 2020
a9c306e
Merge pull request lektor-website/298 from lektor/unified-installer
xlotlu Apr 23, 2020
8dcc3e3
Fix grammatical mistake in /urls/contents.lr
nicoleiocana May 1, 2020
6fc4c4f
Merge pull request lektor-website/299 from nicoleiocana/patch-1
skorokithakis May 1, 2020
4803c8a
Set my_image correctly
nicoleiocana May 2, 2020
9fb7a85
Merge pull request lektor-website/300 from nicoleiocana/patch-2
runfalk May 2, 2020
a49135d
add note about robots.txt
xlotlu May 2, 2020
eff59c4
Fix 'comes in handy' phrase
nicoleiocana May 2, 2020
645629c
Merge pull request lektor-website/301 from nicoleiocana/patch-3
skorokithakis May 2, 2020
c7cd2c2
Update Website.lektorproject
goanpeca May 11, 2020
d344c19
Merge pull request lektor-website/304 from lektor/fix/lektor-atom-dep
goanpeca May 11, 2020
75a5aae
Merge pull request lektor-website/286 from georgeyk/doc-output-path
nixjdm May 21, 2020
38d87be
Merge lektor-website docs
xlotlu Jun 14, 2020
333ba16
initial docs project cleanup
xlotlu Jun 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/Website.lektorproject
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[project]
name = Lektor
url = https://www.getlektor.com/
url_style = absolute

[servers.production]
enabled = yes
name = Production
target = rsync://deploy@flow.srv.pocoo.org/srv/websites/getlektor.com/static
default = yes

[packages]
lektor-webpack-support = 0.3
lektor-markdown-header-anchors = 0.1
lektor-markdown-highlighter = 0.1
lektor-markdown-admonition = 0.1
2 changes: 2 additions & 0 deletions docs/configs/markdown-highlighter.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pygments]
style = tango
11 changes: 11 additions & 0 deletions docs/content/api/build/artifact/artifact-name/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
title: artifact_name
---
summary: The name of the artifact
---
type: property
---
body:

This property just returns the artifact name. This is mostly useful for
debugging purposes as in the majority of situations you already have
the artifact name from different sources.
34 changes: 34 additions & 0 deletions docs/content/api/build/artifact/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
title: Artifact
---
summary: Represents an artifact during the build process.
---
type: class
---
body:

During the build process Lektor creates artifact objects to represent final
build artifacts. Generally each [Source Object :ref](../../db/obj/) will
generate one artifact for which it acts as a primary source.

There are however many cases in which a source object will create
sub-artifacts. For instance any thumbnail created in the context of a page
will be creating its own artifact. To give plugins the same ability the
artifact system is partially documented. See also [sub_artifact
:ref](../context/sub-artifact/) to see how to create your own artifact
instances.

The most important function of an artifact is [open :ref](open/) which can
open the artifact for reading or writing. If the build goes well, Lektor
will commit those changes and persist them.

## Example

```python
ctx = get_ctx()
@ctx.sub_artifact('artifact.txt')
def build_stylesheet(artifact):
with artifact.open('w') as f:
f.write('Hello World!\n')
```
---
module: lektor.builder
12 changes: 12 additions & 0 deletions docs/content/api/build/artifact/is-current/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
title: is_current
---
summary: Indicates if the artifact is up to date or needs building.
---
type: property
---
body:

This property on an artifact returns `True` if building is necessary or
`False` if not based on the state of all dependencies. When you are using
the sub-artifact system, the builder callback will only be invoked if the
artifact is not current.
28 changes: 28 additions & 0 deletions docs/content/api/build/artifact/open/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
title: open
---
summary: Can open the artifact for reading or writing.
---
type: method
---
signature: mode='rb', ensure_dir=None
---
body:

This opens the artifact for reading or writing. The default behavior is that
if the artifact is opened for reading, the directory it's contained within
automatically is created. This can be disabled or enabled with the
`ensure_dir` parameter.

If the artifact is opened for writing, a copy will be created and only
committed when the entire build process goes through smoothly and the
changes are committed by the builder.

## Example

```python
ctx = get_ctx()
@ctx.sub_artifact('artifact.txt')
def build_stylesheet(artifact):
with artifact.open('w') as f:
f.write('Hello World!\n')
```
26 changes: 26 additions & 0 deletions docs/content/api/build/artifact/render-template-into/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
title: render_template_into
---
summary: Renders a template into the artifact.
---
signature: template_name, this, fail=False, pad=None, this=None, values=None, alt=None
---
type: method
---
body:

This method renders a template into the artifact. The default behavior is to
catch the error and render it into the template with a failure marker. This
can be changed with the `fail` parameter. This is similar to the behavior of
the [render_template :ref](../../../environment/render-template/) method of the
environment.

## Example

```python
class MyBuildProgram(BuildProgram):
...

def build_artifact(self, artifact):
artifact.render_template_into(
self.source['_template'], this=self.source)
```
24 changes: 24 additions & 0 deletions docs/content/api/build/artifact/replace-with-file/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
title: replace_with_file
---
summary: Replaces the artifact with a file from the file system.
---
type: method
---
signature: filename, ensure_dir=None, copy=False
---
body:

This method will replace the artifact with another file on the file system
on commit. This is useful when you are dealing with external applications
that create temporaries. By default the file is moved as this is what's
common with temporaries but this can be changed into a copy with `copy=True`.

## Example

```python
ctx = get_ctx()
@ctx.sub_artifact('artifact.txt')
def build_stylesheet(artifact):
temporary_file = invoke_external_program()
artifact.replace_with_file(temporary_file)
```
12 changes: 12 additions & 0 deletions docs/content/api/build/artifact/source-obj/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
title: source_obj
---
summary: A reference to the source object if available.
---
type: property
---
body:

If an artifact directly corresponds to a [Source Object :ref](../../../db/obj/)
then this will be a reference to it. For most plugins this is unlikely but
if you provide a source obj in the `sub_artifact` call it will be available
here.
9 changes: 9 additions & 0 deletions docs/content/api/build/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: Build System
---
summary: Everything about Lektor's build system.
---
body:

The build system in Lektor is what is responsible for converting the source
files into the final website. Parts of it are currently documented so that
the plugin system can interact with it.
21 changes: 21 additions & 0 deletions docs/content/api/build/context/changed-base-url/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
title: changed_base_url
---
summary: Can override the base URL that is used for relative URL generation.
---
type: method
---
signature: value
---
body:

By default the URL generation is relative to the current source record
but in some cases this can lead to issues when plugins attempt more complex
operations. In these cases the base URL can temporarily be overridden
with this method.

## Example

```python
with get_ctx().changed_base_url('/downloads/'):
url = url_to('/')
```
29 changes: 29 additions & 0 deletions docs/content/api/build/context/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
title: Context
---
summary: Provides context information for the current build.
---
module: lektor.context
---
type: class
---
body:

When Lektor builds sources into finished build artifacts it performs many
operations in addition to just creating the end result. For instance it needs
to perform dependency tracking, it needs to remember that there might be
associated other artifacts and more. All this information is tracked on the
`Context` during a build of a single source. At a later point the builder
will look at the context to decide on further operations to perform.

The current context can be discovered by calling the [get_ctx :ref](../get-ctx/)
function which will return it. If there is no artifact build ongoing then
the return value will be `None`.

## Basic Example

```python
from lektor.context import get_ctx

ctx = get_ctx()
print('The current source is %s' % ctx.source)
```
25 changes: 25 additions & 0 deletions docs/content/api/build/context/gather-dependencies/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
title: gather_dependencies
---
summary: Can collect dependencies for a code block.
---
type: method
---
signature: func
---
body:

As code is executing in the context of the build process Lektor will
automatically track dependencies. However in some cases it might be
useful for a plugin to know exactly which dependencies are recorded.

In this case this method can be used as a context manager. Whenever Lektor
encounters a dependency it will invoke the passed function.

## Example

```python
deps = set()
with get_ctx().gather_dependencies(deps.add):
items = pad.query('/path/to/some/pages').all()
print('The dependencies are: %s' % deps)
```
20 changes: 20 additions & 0 deletions docs/content/api/build/context/locale/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
title: locale
---
summary: The current locale (language/territory) code for the context.
---
type: property
---
body:

For functionality in Lektor that is dependent on the locale (technical
term for language and territory) the context provides this information. It's
automatically resolved based on configuration from the current alt.

This is primarily useful for plugins that want to change their behavior based
on the current requested language.

## Example

```python
print get_ctx().locale
```
20 changes: 20 additions & 0 deletions docs/content/api/build/context/pad/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
title: pad
---
summary: A reference to the active database pad.
---
type: property
---
body:

To access the current pad from the context, this attribute can be used. It
refers to the active [Pad :ref](../../../db/pad/).

## Example

```python
from lektor.context import get_ctx

ctx = get_ctx()
for child in ctx.pad.root.children:
do_something_with(child)
```
43 changes: 43 additions & 0 deletions docs/content/api/build/context/record-dependency/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
title: record_dependency
---
summary: Instructs the builder to record a new dependency for the current artifact.
---
type: method
---
signature: filename
---
body:

Because Lektor is a system that builds artifacts into static files, an
important part of it is the dependency graph. It tracks dependencies between
produced artifacts and source files to automatically determine which files
need to be rebuilt when sources change.

As such it's crucial that plugins record dependencies properly or changes
will not show up, even if sources change.

This can be achieved with the `record_dependency` context method. If a plugin
references a file which can affect the output of the plugin, it's important
to record this as a dependency.

Note that you should only track dependencies below the project folder. It
is possible to dependend to things outside of it, but the automatic watch
system of the builder will not track files there so they will not show up
unless a manual build is instructed.

## Example

```python
import os
from lektor.pluginsystem import Plugin

class IncludeFilePlugin(Plugin):

def setup_env(self, **extra):
def include_file(filename):
fn = os.path.join(self.env.root_path, 'inc', filename)
get_ctx().record_dependency(fn)
with open(fn) as f:
return f.read().decode('utf-8')
self.env.jinja_env.globals['include_file'] = include_file
```
20 changes: 20 additions & 0 deletions docs/content/api/build/context/record/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
title: record
---
summary: A reference to the current source record.
---
type: property
---
body:

This works almost exactly like the [source :ref](../source/) property but the
difference is that it is `None` if the source object is not a
[Record :ref](../../../db/record/).

## Example

```python
from lektor.context import get_ctx

ctx = get_ctx()
print ctx.record.record_label
```
21 changes: 21 additions & 0 deletions docs/content/api/build/context/source/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
title: source
---
summary: A reference to the current source object.
---
type: property
---
body:

The context is created for each target artifact. As most artifacts are
created from [Source Objects :ref](../../../db/obj/), it's typically possible
to refer back to it. Note that there are situations in which artifacts are
created but no source is available. In this case the value will be `None`.

## Example

```python
from lektor.context import get_ctx

ctx = get_ctx()
print ctx.source.source_filename
```