Skip to content

Commit f67c535

Browse files
committed
remove repocloner, use install script
1 parent 3dbb575 commit f67c535

File tree

4 files changed

+66
-258
lines changed

4 files changed

+66
-258
lines changed

docpad.coffee

-23
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# For the blog preview page parse the markdown with github flavour.
22
removeMd = require 'remove-markdown'
3-
backers = require './src/files/backers.json'
43

54

65
# The DocPad Configuration File
@@ -47,10 +46,6 @@ docpadConfig = {
4746
# -----------------------------
4847
# Helper Functions
4948

50-
# Used in the fundraiser page for the indiegogo backer list
51-
getBackers: ->
52-
backers
53-
5449
# Get the prepared site/document title
5550
# Often we would like to specify particular formatting to our page's title
5651
# we can apply that formatting here
@@ -121,15 +116,6 @@ docpadConfig = {
121116

122117
collections:
123118

124-
blog: (database) ->
125-
database.findAllLive({layout:$has:['blog-post', 'fundraiser-layout']}, [filename:-1]).on 'add', (document) ->
126-
a = document.attributes
127-
if a.layout != "fundraiser-layout"
128-
contentPreview = removeMd(a.content).substring(0,150) + " ..."
129-
document.setMetaDefaults({
130-
contentPreview
131-
})
132-
133119
getting_started: (database) ->
134120
docpadConfig.templateData.getDocCollection(database, '00_getting_started', 'getting_started', 'Getting Started')
135121

@@ -176,15 +162,6 @@ docpadConfig = {
176162
enabled: true
177163
markedOptions:
178164
gfm: true
179-
180-
repocloner:
181-
repos: [
182-
{
183-
name: 'HaxeFlixelDocumentation'
184-
path: 'src/documents/documentation'
185-
url: 'https://github.com/HaxeFlixel/flixel-docs.git'
186-
}
187-
]
188165
}
189166

190167
# Export our DocPad Configuration

package-lock.json

+40-234
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
"docpad-plugin-less": "2.5.1",
1515
"docpad-plugin-marked": "2.4.0",
1616
"docpad-plugin-partials": "2.12.0",
17-
"docpad-plugin-repocloner": "2.3.1",
1817
"remove-markdown": "github:stiang/remove-markdown#main",
1918
"sharp": "^0.33.2"
2019
},
2120
"main": "node_modules/docpad/bin/docpad-server",
2221
"scripts": {
22+
"preinstall": "node scripts/install-flixel-docs-repo.js",
2323
"start": "run-s start:*",
2424
"start:11ty": "eleventy",
2525
"start:docpad": "docpad run",
@@ -33,6 +33,7 @@
3333
"@11ty/eleventy": "^2.0.1",
3434
"@11ty/eleventy-img": "^4.0.2",
3535
"npm-run-all2": "^6.1.2",
36+
"shelljs": "^0.8.5",
3637
"standard": "^17.1.0"
3738
},
3839
"standard": {

0 commit comments

Comments
 (0)