2014-05-15 2 views
0

렌더링되는 실제 컨텐츠와 Docpad 시스템을 구분해야합니다. Docpad 시스템은 콘텐츠 프로젝트 내에 npm을 설치하는 노드 모듈입니다.Docpad 시스템과 컨텐츠를 분리하는 방법

content-project/ 
    - src/ 
    - documents/ 
    - files/ 
    - layout/ 
    - node_modules/ 
    - docpad-system/ 
     - node_modules/ 
     - docpad/ 
     - docpad-plugins-*/ 
     - docpad.js 
     - package.json 

docpad 시스템이 컨텐츠는 별도 있도록이 프로젝트를 구성하는 적절한 방법은 이것이다 :

여기에 콘텐츠 프로젝트의 구조인가?

docpad config가 올바른 위치에 있는지 확실하지 않습니다. srcPath 및 rootPath를 설정했지만 내용이 렌더링되지 않았습니다.

답변

2

달성하려는 목표가 확실하지 않습니다. 그러나 srcout 폴더의 위치를 ​​변경하려면 docpad.coffee/js에있는 srcPathoutPath을 변경하면됩니다. 이처럼 :

// Out Path 
// Where should we put our generated website files? 
// If it is a relative path, it will have the resolved `rootPath` prepended to it 
outPath: '../out', // default out 

// Src Path 
// Where can we find our source website files? 
// If it is a relative path, it will have the resolved `rootPath` prepended to it 
srcPath: '../src', // default src 

이 같은 장소 (하고 '밖으로'폴더 내)에 rootPath 또한 출력 렌더링 된 파일 위의 폴더에 원본 파일을 찾아 Docpad을 강제 할 것이다.

content-project/ 
    docpad-system 
    src 
    out 

docpad 시스템의 모든 노드 모듈과 docpad.coffee/js 및 package.json 포함됩니다 :

은 결과적으로이 같은 프로젝트 구조 뭔가가있을 수 있습니다. 이것은 docpad가 염려하는 한 당신의 프로젝트의 근원 일 것이며, 이것이 docpad를 실행시키고 자하는 곳입니다.