What’s New on WordPress.com: Focus Mode, Promotion From Your Pocket, and Risk-Free Redesigns

At WordPress.com, we’re always pushing our platform to do even more so that you can create, design, and publish amazing things with ease. 

The last few weeks have found us as busy as the springtime bees improving the writing and publishing process even more, bringing our ad platform to mobile, and ensuring that previous edits to your work are readily accessible. 

Let’s jump in and take a look.   

Write without distractions 

One of writing’s biggest challenges has nothing to do with the words — it’s filtering out the noise (both literal and figurative) so you can focus. We can’t change your physical environment, but we’re doing what we can to help you get into “the zone” a little more easily. Enter distraction free mode, a minimalist WordPress experience that removes the buttons and menus.   

From the top toolbar, click the three-dot menu on the right-hand side. Select “Distraction free” and you’ll notice the top toolbar disappear. (To bring it back, simply hover over the top of the page and it’ll pop back down.) Your pages and posts will be distraction-free until you deselect this mode. 

When to use this feature: You can’t resist experimenting with various settings or styles, but you also really need to get that new post finished. (Believe us, we’ve been there.) With this cleaner interface, you can focus on your words and your words alone. 

Promote your content from your phone 

Blaze, our self-serve ad platform, makes it easier than ever to spread the word about whatever it is you’re writing, creating, or selling. Now, you can Blaze on the go with the Jetpack app. 

From the main dashboard, simply click on the banner that says “Promote your content with Blaze.” You can also promote your work directly from the Posts or Pages menus by clicking “More” or the three-dot menu and selecting “Promote with Blaze.” 

When to use this feature: You’re waiting for take-out at your favorite Indian restaurant. While scrolling the Jetpack app, you notice traffic spiking on one of your recent blog posts — something about it is resonating with readers. Maximize its impact by boosting it to an even wider audience with Blaze.

Easily find and add free images 

Need a featured image for your post? You can now find and add free-to-use images even faster. Open the Inserter (the red “+” button at the top left of any post or page), navigate to the tab labeled “Media,” click “Openverse,” and find the perfect option from our favorite open-source library. 

You can also still access Openverse from the Image Block or Media Library. 

When to use this feature: You’re on the hunt for just the right image to use in your new blog post. Rather than doing a Google search in a separate tab — and running the risk of using an image you don’t have rights to — use the Inserter to search and place exactly what you need. 

Give readers a timetable

Here’s a fun built-in feature that a lot of folks don’t know about: The WordPress.com editor’s “Outline” function displays a post’s various headings for easy scanning, as well as a word/character count and a “time to read” estimate of how long it would take an average reader to get through the content on that page: 

You can even display that estimate to your site visitors with the new Time To Read Block. (Styling and other customization options are on the way.) 

When to use this feature: You do a lot of longform writing on your site, regularly publishing posts that go over 1,000 words. With this new block, let readers decide whether to start your post now, or wait until they have time to read it in one sitting. It’s a small touch, but a surprisingly thoughtful one. 

Access previous edits to your templates 

Access to previous versions and revisions of posts/pages has long been a staple of the WordPress experience. We’ve now added that same functionality to templates and template parts in the Editor.  

This can be useful for restoring a previous version of a template that you’ve made changes to, or simply for reviewing the changes you’ve made over time. 

When to use this feature: You experimented with some stylistic changes to your homepage template, but after a couple weeks of trying it out, the new look just isn’t hitting quite right. Head over to revisions to easily restore the previous version of the template. 
Quelle: RedHat Stack

Docker Compose Experiment: Sync Files and Automatically Rebuild Services with Watch Mode

We often hear how indispensable Docker Compose is as a development tool. Running docker compose up offers a streamlined experience and scales from quickly standing up a PostgreSQL database to building 50+ services across multiple platforms.

And, although “building a Docker image” was previously considered a last step in release pipelines, it’s safe to say that containers have since become an essential part of our daily workflow. Still, concerns around slow builds and developer experience have often been a barrier towards the adoption of containers for local development.

We’ve come a long way, though. For starters, Docker Compose v2 now has deep integration with BuildKit, so you can use features like RUN cache mounts, SSH Agent forwarding, and efficient COPY with –link to speed up and simplify your builds. We’re also constantly making quality-of-life tweaks like enhanced progress reporting and improving consistency across the Docker CLI ecosystem.

As a result, more developers are running docker compose build && docker compose up to keep their running development environment up-to-date as they make code changes. In some cases, you can even use bind mounts combined with a framework that supports hot reload to avoid the need for an image rebuild, but this approach often comes with its own set of caveats and limitations.

An early look at the watch command

Starting with Compose v2.17, we’re excited to share an early look at the new development-specific configuration in Compose YAML as well as an experimental file watch command (Figure 1) that will automatically update your running Compose services as you edit and save your code.

This preview is brought to you in no small part by Compose developer Nicolas De Loof (in addition to more than 10 bugfixes in this release alone).

Figure 1: Preview of the new watch command.

An optional new section, x-develop, can be added to a Compose service to configure options specific to your project’s daily flow. In this release, the only available option is watch, which allows you to define file or directory paths to monitor on your computer and a corresponding action to take inside the service container.

Currently, there are two possible actions: 

sync — Copy changed files matching the pattern into the running service container(s).

rebuild — Trigger an image build and recreate the running service container(s).

services:
web:
build: .
x-develop:
watch:
– action: sync
path: ./web
target: /src/web
– action: rebuild
path: package.json

In the preceding example, whenever a source file in the web/ directory is changed, Compose will copy the file to the corresponding location under /src/web inside the container. Because Webpack supports Hot Module Reload, the changes are automatically detected and applied.

Unlike source code files, adding a new dependency cannot be done on the fly, so whenever package.json is changed, Compose will rebuild the image and recreate the web service container.

Behind the scenes, the file watching code shares its core with Tilt. The intricacies and surprises of file watching have always been near and dear to the Tilt team’s hearts, and, as Dockhands, the geeking out has continued. 

We are going to continue to build out the experience while gated behind the new docker compose alpha command and x-develop Compose YAML section. This approach will allow us to respond to community feedback early in the development process while still providing a clear path to stabilization as part of the Compose Spec.

Docker Compose powers countless workflows today, and its lightweight approach to containerized development is not going anywhere — it’s just learning a few new tricks.

Try it out

Follow the instructions at dockersamples/avatars to quickly run a small demo app, as follows:

git clone https://github.com/dockersamples/avatars.git
cd avatars
docker compose up -d
docker compose alpha watch
# open http://localhost:5735 in your browser

If you try it out on your own project, you can comment on the proposed specification on GitHub issue #253 in the compose-spec repository.
Quelle: https://blog.docker.com/feed/