-
Notifications
You must be signed in to change notification settings - Fork 1
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
Prepare for the dynamic aspects of the site #50
Comments
Having separate environments for content and server configs may be one way to handle this For example: .
└─ output
└─ app
├─ app.lua
├─ content # ← into this folder would the static files be built
└─ … To do this, we could either arrange the files in the .
├─ content
│ ├─ assets
│ ⋮
│ └─ specifications.erb
└─ server
├─ app.moon
├─ nginx.conf
└─ views and use a different |
The more I think about this, I'm wondering whether it would be best to simply use one Such an approach could look like this: .
└─ items
├─ app.moon
├─ nginx.conf
├─ static
│ ├─ assets
│ ├─ blog
│ │ └─ index.erb
│ ⋮
│ ├─ specifications.erb
│ └─ videos
└─ views So the |
I don't see the reason anymore to have the |
I want to revisit storing the static root under the dynamic items. It makes most of the paths when editing one level deeper. Beyond that it seems like we're dealing with two different logics here, and that a separation would be useful as we move forward. |
Overhauled company data source to simplify and better handle x509 certificates. Restructured Nanoc identifiers to be simpler and more consistent. Clarified requirement and creation of the web_id attribute. Simplified helpers by moving some (NOT YET ALL) item creation code to Nanoc data sources (#86). Restructured relevant text helpers to directly extend String class. Remove spurious text helper methods that were already provided by activesupport. Remove the to_slug helper method. Updated many hard-coded item identifier references to use site config. Introduced WIP personal profile pages, replacing author pages. Updated account_service_item render call on the company page, missed in 8dbe352 Updated rules to use the new identifiers.
Or we need some way to build and compartmentalize both the static and dynamic aspects of the site to prepare the way for the dynamic aspects of the site (issue #14).
Here is what I envision as possible dynamic aspects of this site:
My question is really: how do we separate the static content and the server configuration files (which we don't want to serve) when we build them together? Or is there a way to build them separately?
On some level, I don't think we will need the dynamic server functionality for most content development, but then again, why have an arbitrary separation or complex, variable process when we don't have to? Either way an HTTP server is running; this issue is only about how to dynamically change the server and the server configuration. Issue #33 is related to this.
Here are a few requirements:
nanoc view
and functionally view the static sitestatic_only
environment to build the static stuff onlyHave the ability to use environments to set different output paths for content and server configurationactually this is not needed for development or deployment, as I thought it mightI like the approach below. Here is what would need to be done to implement it:
items
directory tocontent
nanoc.yaml
accordinglyUse site config and rules to dynamically set the root of the outputted item paths(see comment below)nanoc view
command that takes the configuration for the static root into accountlink_to
to remove the/static/
root for link generationpublic_path_to
helperstatic_only
environment that ignores all of the server items during the build (see another comment below)Would be nice to do to know that this setup actually works:
Add themove everything back to a consolidated datasource (see comment below)server|app
datasourcenanoc server
commandThe text was updated successfully, but these errors were encountered: