Skip to content

Commit

Permalink
remove repocloner, use install script
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Feb 27, 2024
1 parent 3dbb575 commit f67c535
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 258 deletions.
23 changes: 0 additions & 23 deletions docpad.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# For the blog preview page parse the markdown with github flavour.
removeMd = require 'remove-markdown'
backers = require './src/files/backers.json'


# The DocPad Configuration File
Expand Down Expand Up @@ -47,10 +46,6 @@ docpadConfig = {
# -----------------------------
# Helper Functions

# Used in the fundraiser page for the indiegogo backer list
getBackers: ->
backers

# Get the prepared site/document title
# Often we would like to specify particular formatting to our page's title
# we can apply that formatting here
Expand Down Expand Up @@ -121,15 +116,6 @@ docpadConfig = {

collections:

blog: (database) ->
database.findAllLive({layout:$has:['blog-post', 'fundraiser-layout']}, [filename:-1]).on 'add', (document) ->
a = document.attributes
if a.layout != "fundraiser-layout"
contentPreview = removeMd(a.content).substring(0,150) + " ..."
document.setMetaDefaults({
contentPreview
})

getting_started: (database) ->
docpadConfig.templateData.getDocCollection(database, '00_getting_started', 'getting_started', 'Getting Started')

Expand Down Expand Up @@ -176,15 +162,6 @@ docpadConfig = {
enabled: true
markedOptions:
gfm: true

repocloner:
repos: [
{
name: 'HaxeFlixelDocumentation'
path: 'src/documents/documentation'
url: 'https://github.com/HaxeFlixel/flixel-docs.git'
}
]
}

# Export our DocPad Configuration
Expand Down
274 changes: 40 additions & 234 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"docpad-plugin-less": "2.5.1",
"docpad-plugin-marked": "2.4.0",
"docpad-plugin-partials": "2.12.0",
"docpad-plugin-repocloner": "2.3.1",
"remove-markdown": "github:stiang/remove-markdown#main",
"sharp": "^0.33.2"
},
"main": "node_modules/docpad/bin/docpad-server",
"scripts": {
"preinstall": "node scripts/install-flixel-docs-repo.js",
"start": "run-s start:*",
"start:11ty": "eleventy",
"start:docpad": "docpad run",
Expand All @@ -33,6 +33,7 @@
"@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-img": "^4.0.2",
"npm-run-all2": "^6.1.2",
"shelljs": "^0.8.5",
"standard": "^17.1.0"
},
"standard": {
Expand Down
Loading

0 comments on commit f67c535

Please sign in to comment.